Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4788 Discussions

Total time and self time for sgx-hotspots in Vtune

jing
Novice
455 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
442 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
443 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


jing
Novice
426 Views

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

RaeesaM_Intel
Moderator
411 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