Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

Profile by Attaching it to the process using Intel V Tune profiler in Linux CLI

Ysk966
Novice
1,532 Views

I'm trying to profile a Python application (Hotspots, Microarchitecture Exploration) by attaching it to the process. While it was relatively trivial to use GUI, I am not finding ways to do the same using Command Line Interface. Does Intel V tune Profiler support attaching to the process ID while using CLI

 

Furthermore Is it possible to export to CSV the results

 

@yuzhang 

0 Kudos
2 Replies
yuzhang3_intel
Moderator
1,523 Views

You can use '-target-pid' option in vtune command line as below:

$ vtune -collect hotspots -target-pid 1234

 

For details, please refer to the user guide:

https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-0/target-pid.html

 

When VTune data collection is finished, you can use vtune -report  to output VTune result to csv file, like below:

$ vtune -report hotspots -r ./r010hs/ -format=csv -report-output=hs.csv

 

For details, you can get help from the below command:

$ vtune -help report

0 Kudos
Jennifer_D_Intel
Moderator
1,474 Views

You can also generate the command line for collection from the GUI as described in this thread:

https://community.intel.com/t5/Analyzers/Limiting-the-data-collected/m-p/1574473

 

0 Kudos
Reply