<?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 Unable to see function names in VTune Profiler in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1431352#M22719</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use VTune profiler on my Qt Creator C++ project. I am using the MinGW 11.2.0 compiler.&lt;/P&gt;
&lt;P&gt;At this point I am unable to see the function names or their source files in VTune:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anca2_1-1668791082569.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35271i5F053B235254395D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Anca2_1-1668791082569.png" alt="Anca2_1-1668791082569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I have tried setting these flags in my *.pro file, but the compiler is complaining about them:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;QMAKE_CFLAGS_RELEASE&lt;/SPAN&gt; &lt;SPAN&gt;+=&lt;/SPAN&gt; &lt;SPAN&gt;/Zi&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;QMAKE_LFLAGS_RELEASE&lt;/SPAN&gt; &lt;SPAN&gt;+=&lt;/SPAN&gt; &lt;SPAN&gt;/DEBUG&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I have also tried building my project with the MSVC kit, but it doesn't compile, so that is not an option either.&lt;/P&gt;
&lt;P&gt;All the documentation that I managed to find refers to Visual Studio, but that is not helpful for me since I am using Qt Creator.&lt;/P&gt;
&lt;P&gt;Is there any way I could make VTune show me the function names ?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 21:08:07 GMT</pubDate>
    <dc:creator>Anca2</dc:creator>
    <dc:date>2022-11-18T21:08:07Z</dc:date>
    <item>
      <title>Unable to see function names in VTune Profiler</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1431352#M22719</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use VTune profiler on my Qt Creator C++ project. I am using the MinGW 11.2.0 compiler.&lt;/P&gt;
&lt;P&gt;At this point I am unable to see the function names or their source files in VTune:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anca2_1-1668791082569.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35271i5F053B235254395D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Anca2_1-1668791082569.png" alt="Anca2_1-1668791082569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I have tried setting these flags in my *.pro file, but the compiler is complaining about them:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;QMAKE_CFLAGS_RELEASE&lt;/SPAN&gt; &lt;SPAN&gt;+=&lt;/SPAN&gt; &lt;SPAN&gt;/Zi&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;QMAKE_LFLAGS_RELEASE&lt;/SPAN&gt; &lt;SPAN&gt;+=&lt;/SPAN&gt; &lt;SPAN&gt;/DEBUG&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I have also tried building my project with the MSVC kit, but it doesn't compile, so that is not an option either.&lt;/P&gt;
&lt;P&gt;All the documentation that I managed to find refers to Visual Studio, but that is not helpful for me since I am using Qt Creator.&lt;/P&gt;
&lt;P&gt;Is there any way I could make VTune show me the function names ?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 21:08:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1431352#M22719</guid>
      <dc:creator>Anca2</dc:creator>
      <dc:date>2022-11-18T21:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see function names in VTune Profiler</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1431776#M22727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting in Intel Communities.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While compiling the C++ program, you can use -g flag. This will debug the code, and the function names will thus be displayed in VTune Analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eg: g++ input.cpp &lt;STRONG&gt;-g&lt;/STRONG&gt; -o output.exe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have taken a sample C++ program (Fibonacci) and compiled it with and without the -g flag and ran VTune (Hotspot) Analysis for both cases. As you can see below, the executable created with -g flag shows the function name, and the executable created without -g flag is not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;with -g&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RemyaP_Intel_0-1669039366777.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35325iD2952B320597D0B3/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RemyaP_Intel_0-1669039366777.png" alt="RemyaP_Intel_0-1669039366777.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;without -g&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RemyaP_Intel_1-1669039417683.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35326i35331CF57ACF3C95/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RemyaP_Intel_1-1669039417683.png" alt="RemyaP_Intel_1-1669039417683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume this will resolve your issue. If yes, please make sure to accept this as a solution. This would help others with a similar issue. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Remya Premdas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:04:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1431776#M22727</guid>
      <dc:creator>RemyaP_Intel</dc:creator>
      <dc:date>2022-11-21T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re:Generate *.pdb files with Qt Creator MinGW</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1433608#M22751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't received any response from your end. Is your issue resolved?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Remya Premdas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2022 14:23:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1433608#M22751</guid>
      <dc:creator>RemyaP_Intel</dc:creator>
      <dc:date>2022-11-28T14:23:13Z</dc:date>
    </item>
    <item>
      <title>Re:Generate *.pdb files with Qt Creator MinGW</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1435776#M22803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Remya Premdas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:57:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-see-function-names-in-VTune-Profiler/m-p/1435776#M22803</guid>
      <dc:creator>RemyaP_Intel</dc:creator>
      <dc:date>2022-12-05T12:57:31Z</dc:date>
    </item>
  </channel>
</rss>

