<?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 Re: Cannot see python functions in VTune in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1629241#M25255</link>
    <description>&lt;P&gt;Please compile the c++ code using the below command and run the python file.&lt;BR /&gt;Make sure to install boost python libraries and make sure to include the right include and lib paths.&lt;BR /&gt;&lt;BR /&gt;g++ -shared -fPIC -I/usr/include/python3.8 -I/usr/include/boost example.cpp -o example.so -lboost_python3.8&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 07:47:59 GMT</pubDate>
    <dc:creator>kbhat</dc:creator>
    <dc:date>2024-09-06T07:47:59Z</dc:date>
    <item>
      <title>Cannot see python functions in VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1618945#M25052</link>
      <description>&lt;P&gt;I have a setup where I have c++ class which is exported to python using c++ boost library. I have python wrapper script that calls these boost functions which in turn call c++ functions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have an executable applicaion that takes the python script as an argument. I intend to analyse the python script using vtune. So I set application as my application executable and the python script as the application parameters. I specify the search directories correctly. But I dont see python function names in the hotspot analysis. Instead I see boost wrappers with C++ function handles. I need to profile both python and c++ functions becuase there are some python functions that are standalone and do not use c++ internally. How do I achieve this? I use linux as my OS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:20:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1618945#M25052</guid>
      <dc:creator>kbhat</dc:creator>
      <dc:date>2024-07-29T10:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see python functions in VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1620684#M25102</link>
      <description>&lt;P&gt;Did you try to specify the mrte mode to mixed as below? And you can simplify your application to reproduce the issue.&lt;/P&gt;
&lt;P&gt;vtune -collect hotspots &lt;STRONG&gt;-mrte-mode=mixed&lt;/STRONG&gt; xxxxx&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 02:24:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1620684#M25102</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-08-05T02:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see python functions in VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1622862#M25140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/118413"&gt;@yuzhang3_intel&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Though I can see some python files, I don't see all the python files. Besides, the python function names are replaced by &amp;lt;module&amp;gt; placeholder. Please note, If I profile a standalone python project, then I can see all the function names. But if I use a setup were C++ functions/Classes are exported to python using&amp;nbsp;&lt;STRONG&gt;boost c++ library&lt;/STRONG&gt;, then I face the issue highlighted above.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 06:50:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1622862#M25140</guid>
      <dc:creator>kbhat</dc:creator>
      <dc:date>2024-08-13T06:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see python functions in VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1622863#M25141</link>
      <description>&lt;P&gt;Could you provide one simple reproducer? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 06:55:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1622863#M25141</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-08-13T06:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see python functions in VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1629241#M25255</link>
      <description>&lt;P&gt;Please compile the c++ code using the below command and run the python file.&lt;BR /&gt;Make sure to install boost python libraries and make sure to include the right include and lib paths.&lt;BR /&gt;&lt;BR /&gt;g++ -shared -fPIC -I/usr/include/python3.8 -I/usr/include/boost example.cpp -o example.so -lboost_python3.8&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 07:47:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1629241#M25255</guid>
      <dc:creator>kbhat</dc:creator>
      <dc:date>2024-09-06T07:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see python functions in VTune</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1629983#M25258</link>
      <description>&lt;P&gt;Thanks for providing the reproducer. I just added one more zero in your source code below. You can see VTune can profile Python code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;23 # Call the Python function&lt;BR /&gt;24 start_time = time.time()&lt;BR /&gt;25 square_sum = sum_of_squares(&lt;STRONG&gt;100000000&lt;/STRONG&gt;) # You can adjust this limit if it runs too fast&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yuzhang3@yuzhang3-10710:~/workspace/isvc_jira_ips/python_wraper$ &lt;STRONG&gt;vtune -collect hotspots python ./sample.py&lt;/STRONG&gt;&lt;BR /&gt;.........&lt;/P&gt;
&lt;P&gt;Top Hotspots&lt;BR /&gt;Function Module CPU Time % of CPU Time(%)&lt;BR /&gt;------------------- ---------- -------- ----------------&lt;BR /&gt;is_prime&amp;nbsp; &amp;nbsp; example.so&amp;nbsp; &amp;nbsp; 38.556s&amp;nbsp; &amp;nbsp; 83.6%&lt;BR /&gt;&lt;STRONG&gt;sum_of_squares&amp;nbsp; &amp;nbsp; &amp;nbsp;sample.py&amp;nbsp; &amp;nbsp; &amp;nbsp;2.548s&amp;nbsp; &amp;nbsp; &amp;nbsp;5.5%&lt;/STRONG&gt;&lt;BR /&gt;PyNumber_InPlaceAdd python3.10 1.602s 3.5%&lt;BR /&gt;PyNumber_Multiply python3.10 1.332s 2.9%&lt;BR /&gt;func@0x15e224 python3.10 0.884s 1.9%&lt;BR /&gt;[Others] N/A 1.218s 2.6%&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 02:57:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-see-python-functions-in-VTune/m-p/1629983#M25258</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-09-10T02:57:56Z</dc:date>
    </item>
  </channel>
</rss>

