Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jing
Novice
251 Views

Total time and self time for sgx-hotspots in Vtune

Jump to solution

Hi,

I am currently using sgx-hotspot option to profile a program. I learned that there are options to show both total time(runtime for function and its collees) or self time(only the function itself) in the GUI for normal cpu profiling. However, I did not find much information for that on command-line in the documentation, what should I do if I am trying to get both total time and self time hotspot analysis on sgx-hotspot result through command line? Thanks so much!

BTW, is the report by default showing the self time? The current collecting option and report command I am using is:

vtune -collect sgx-hotspots -- Myprogram

vtune -report hotspots -r r000sgxhs -group-by module
vtune -report hotspots r000sgxhs -limit 50 >> report.txt

 

0 Kudos
1 Solution
RaeesaM_Intel
Moderator
238 Views

Hi,


Thank you for posting in Intel Forum.


You can generate a report in gprof-like format. The gprof-cc report shows how much time is spent in each program unit, its callers and callees. The report is sorted by time spent in the function and its callees.What you get in the hotspot report is the total elapsed time.


Commands :

vtune -collect sgx-hotspots – Myprogram

vtune -report gprof-cc -r r000sgxhs -group-by module


Please refer the following links for more details regarding gprof-cc :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-inter...


For other report options, refer :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-inter...


Thanks and Regards,

Raeesa


View solution in original post

3 Replies
RaeesaM_Intel
Moderator
239 Views

Hi,


Thank you for posting in Intel Forum.


You can generate a report in gprof-like format. The gprof-cc report shows how much time is spent in each program unit, its callers and callees. The report is sorted by time spent in the function and its callees.What you get in the hotspot report is the total elapsed time.


Commands :

vtune -collect sgx-hotspots – Myprogram

vtune -report gprof-cc -r r000sgxhs -group-by module


Please refer the following links for more details regarding gprof-cc :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-inter...


For other report options, refer :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-inter...


Thanks and Regards,

Raeesa


View solution in original post

jing
Novice
222 Views

Thank you. I guess I missed that link when looking at the documentation, sorry for the inconvenience. 

RaeesaM_Intel
Moderator
207 Views

Hi,


Thank you for letting us know. We are discontinuing monitoring this thread. Please raise a new query if you have any further issues. We would be happy to help you.


Raeesa


Reply