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

Total time and self time for sgx-hotspots in Vtune

jing
Novice
969 Views

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
956 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-interface/generating-command-line-reports/gprof-cc-report.html


For other report options, refer :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/command-line-interface-reference/report.html


Thanks and Regards,

Raeesa


View solution in original post

0 Kudos
3 Replies
RaeesaM_Intel
Moderator
957 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-interface/generating-command-line-reports/gprof-cc-report.html


For other report options, refer :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/command-line-interface-reference/report.html


Thanks and Regards,

Raeesa


0 Kudos
jing
Novice
940 Views

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

0 Kudos
RaeesaM_Intel
Moderator
925 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


0 Kudos
Reply