<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi, in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186256#M18923</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use ITT tasks or counters for that.&amp;nbsp;https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis/instrumentation-and-tracing-technology-api-reference/counters-api.html&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2020 09:33:38 GMT</pubDate>
    <dc:creator>Vladimir_R_Intel</dc:creator>
    <dc:date>2020-06-15T09:33:38Z</dc:date>
    <item>
      <title>Counting function calls</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186254#M18921</link>
      <description>&lt;P&gt;Is there a simple way to make vtune (2019) count the number of times a function has been called?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 11:48:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186254#M18921</guid>
      <dc:creator>petersen__Kenni_dine</dc:creator>
      <dc:date>2020-06-12T11:48:28Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186255#M18922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out.&lt;/P&gt;&lt;P&gt;For your information,vtune will let you know the time spent in each function but it will not have the count of function calls.For more information refer the below comment&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/vtune/topic/856379#comment-1958661"&gt;https://software.intel.com/en-us/forums/vtune/topic/856379#comment-1958661&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 09:05:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186255#M18922</guid>
      <dc:creator>JananiC_Intel</dc:creator>
      <dc:date>2020-06-15T09:05:58Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186256#M18923</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use ITT tasks or counters for that.&amp;nbsp;https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis/instrumentation-and-tracing-technology-api-reference/counters-api.html&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 09:33:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186256#M18923</guid>
      <dc:creator>Vladimir_R_Intel</dc:creator>
      <dc:date>2020-06-15T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Thanks for quick answers. My</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186257#M18924</link>
      <description>&lt;P&gt;Thanks for quick answers. My problem is that i have a very large program with several 100s of functions that are called depending on a rather complicated tree of control structures, and the functions are often called several 1000 times. I am profiling two different runs with slightly different input. I would expect identical output, despite the different input. My suspicion is that that somewhere during the run, an&amp;nbsp;erroneous control statement leads to a wrong function being called.&lt;/P&gt;&lt;P&gt;I thought a useful and simple proxy to look at in order to identify how the two runs differ would be to look at the # times the different functions have been called as this seems to be standard output of other profilers, but I suppose this is perhaps not possible by default for vtune? I tried to activate the&amp;nbsp;instrument-functions option during compilation, but I was unable to see any change of the results presented by vtune, and I was also unable to find relevant documentation for this.&lt;/P&gt;&lt;P&gt;Anyways, is there a good, alternative way to analyse a situation like mine where I need to compare two almost identical runs and figure&amp;nbsp;out where they differ? In this particular case, it would help me a lot if I know e.g. the order of the functions called. Of course, I could manually modify the code to track this information, but would it not be a somewhat standard thing to track by a profiler such as vtune?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 13:30:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186257#M18924</guid>
      <dc:creator>petersen__Kenni_dine</dc:creator>
      <dc:date>2020-06-15T13:30:43Z</dc:date>
    </item>
    <item>
      <title>The traditional way to count</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186258#M18925</link>
      <description>&lt;P&gt;The traditional way to count function calls and record their calling trees is with "gprof".&lt;/P&gt;&lt;P&gt;With gcc compilers, you add "-pg" to the compile and link statements. &amp;nbsp;Upon execution, the program produces a "gmon.out" file which can be processed by "gprof" to see the time spent in each function, with attribution of the function calls up the relevant calling tree.&lt;/P&gt;&lt;P&gt;With Intel compilers, the "-p" option sets up for the same sort of analysis.&lt;/P&gt;&lt;P&gt;Both gcc and Intel compilers support the "-finstrument-functions" compiler option. &amp;nbsp;This causes the compiler to emit code on entry and exit to every function, which calls a user-provided routine and passes pointers to the current routine and its caller. &amp;nbsp;These can be used to count function invocations, build calling stacks, install performance counter instrumentation, etc. &amp;nbsp;The main disadvantage of this approach is that it disables function inlining. &amp;nbsp;If you call lots of tiny functions, this can lead to a significant performance penalty. &amp;nbsp; For both gcc and Intel compilers, you can add&amp;nbsp;&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;__attribute__((__no_instrument_function__))&lt;/PRE&gt;

&lt;P&gt;to a function to prevent it from being instrumented (and allow it to be inlined).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 17:20:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186258#M18925</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2020-06-15T17:20:37Z</dc:date>
    </item>
    <item>
      <title>Thanks, Dr. Bandwidth</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186259#M18926</link>
      <description>&lt;P&gt;Thanks, Dr. Bandwidth&lt;/P&gt;&lt;P&gt;It seems that this option is not available for the Windows version of the compiler. Unfortunately, I am stuck with Windows. Does this mean that the function calls calls cannot be instrumented?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 11:53:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186259#M18926</guid>
      <dc:creator>petersen__Kenni_dine</dc:creator>
      <dc:date>2020-06-16T11:53:31Z</dc:date>
    </item>
    <item>
      <title>I am afraid I can't help with</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186260#M18927</link>
      <description>&lt;P&gt;I am afraid I can't help with Windows questions -- I have not had a windows machine in over five years, and never had a good compiler on one anyway....&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 18:34:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186260#M18927</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2020-06-17T18:34:14Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186261#M18928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the update.&lt;/P&gt;
&lt;P&gt;Could you let us know which Vtune version you are using?&lt;/P&gt;
&lt;P&gt;If it is before 2019 u4 we had call count option but the latest version of Vtune doesn’t have this feature.You can&amp;nbsp;also try Intel Advisor for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 10:36:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186261#M18928</guid>
      <dc:creator>JananiC_Intel</dc:creator>
      <dc:date>2020-07-06T10:36:07Z</dc:date>
    </item>
    <item>
      <title>Janani: I use version 2019</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186262#M18929</link>
      <description>&lt;P&gt;Janani: I use version 2019 update 6. I also have Intel Advisor 2019. Is there way to show see a function count using Intel Advisor?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;PS: Also thank you, Dr. Bandwidth for looking into this.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:45:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1186262#M18929</guid>
      <dc:creator>petersen__Kenni_dine</dc:creator>
      <dc:date>2020-06-22T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re:Counting function calls</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1187958#M18950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;Kindly follow the procedures mentioned in the below link and let us know the updates.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/advisor-user-guide/top/survey-trip-counts-flops-and-roofline-analyses/trip-counts-analysis.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/advisor-user-guide/top/survey-trip-counts-flops-and-roofline-analyses/trip-counts-analysis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2020 07:11:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1187958#M18950</guid>
      <dc:creator>JananiC_Intel</dc:creator>
      <dc:date>2020-06-29T07:11:06Z</dc:date>
    </item>
    <item>
      <title>Re:Counting function calls</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1188987#M18975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has this issue been resolved?Could you give us an update?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jul 2020 10:13:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1188987#M18975</guid>
      <dc:creator>JananiC_Intel</dc:creator>
      <dc:date>2020-07-02T10:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting function calls</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1189108#M18979</link>
      <description>&lt;P&gt;As Janani already mentioned, there is a dedicated tool to do Call Counts computations.&lt;/P&gt;
&lt;P&gt;This is "Intel Advisor TripCounts" analysis. Note that this provides you with exact (precise) loops tripcount and loops/function call counts data.&lt;/P&gt;
&lt;P&gt;In order to obtain this data you have to first run Advisor Survey analysis and afterwards Run Advisor TripCounts (FLOP and Tripcounts check-boxes ON at the workflow). The same can be done via command line.&lt;/P&gt;
&lt;P&gt;See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="callcounts.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10971i512EAB411E53CCA6/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="callcounts.png" alt="callcounts.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Zakhar &lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 20:07:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1189108#M18979</guid>
      <dc:creator>Zakhar_M_Intel1</dc:creator>
      <dc:date>2020-07-02T20:07:28Z</dc:date>
    </item>
    <item>
      <title>Re:Counting function calls</title>
      <link>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1191227#M19017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are closing the case assuming  that your issue got resolved.Please raise a new thread in case of any further issues.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jul 2020 05:38:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Counting-function-calls/m-p/1191227#M19017</guid>
      <dc:creator>JananiC_Intel</dc:creator>
      <dc:date>2020-07-10T05:38:39Z</dc:date>
    </item>
  </channel>
</rss>

