Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5167 Discussions

Is there any way to get CPU utilization timeline data in vtune using command line?

AB27
Beginner
1,561 Views

My goal is to generate CPU utilization timeline data from the command line in Vtune. Is there any way to do it?

I can collect Vtune data for hotspots using the following command:

`vtune -collect hotspots -result-dir r000hs program`

Using GUI, I can see the CPU utilization timeline as shown in the picture below:

 

However, I want to plot the data with high resolution and merge it with some other data to put it in a PDF. Can this data be generated from the command line?

I found a few commands to do it, but none generated this timeline data. For example,

`vtune -report hotspots -r r000hs -report-output output`

only generates the functions with overall runtime.

 
Labels (1)
0 Kudos
1 Solution
SreedeviK_Intel
Moderator
1,486 Views

Hi,

 

Thank you for posting in Intel Communities.

 

The CPU utilization timeline data can be obtained using below command after running the analysis:

$ vtune -report timeline -r <result_dir_name> -report-knob column-by=CPUTime

Also, the number of bins for the above command can be changed using the below report-knob:

[...] -report-knob bin-count=xx

Eg:

$ vtune -report timeline -r r000hs -report-knob column-by=CPUTime -report-knob bin-count=20

SreedeviK_Intel_0-1695752131002.png

 

If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue. Kindly let us know if you are still facing any issues.

 

Regards,

Sreedevi

 

View solution in original post

0 Kudos
2 Replies
SreedeviK_Intel
Moderator
1,487 Views

Hi,

 

Thank you for posting in Intel Communities.

 

The CPU utilization timeline data can be obtained using below command after running the analysis:

$ vtune -report timeline -r <result_dir_name> -report-knob column-by=CPUTime

Also, the number of bins for the above command can be changed using the below report-knob:

[...] -report-knob bin-count=xx

Eg:

$ vtune -report timeline -r r000hs -report-knob column-by=CPUTime -report-knob bin-count=20

SreedeviK_Intel_0-1695752131002.png

 

If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue. Kindly let us know if you are still facing any issues.

 

Regards,

Sreedevi

 

0 Kudos
SreedeviK_Intel
Moderator
1,440 Views

Hi,


Thanks for accepting our solution.


If you need any additional information, please post a new question as Intel will no longer monitor this thread.


Regards,

Sreedevi


0 Kudos
Reply