Intel® VTune™ Amplifier
Similar to the Top-down window, available in GUI, the Top-down represents call sequences (stacks) detected during collection phase starting from the application root. Use the top-down report to explore the call sequence flow of the application and analyze the time spent in each program unit and on its callees.
Intel® VTune™ Amplifier collects information about program unit callees only during user-mode sampling and tracing analysis or hardware event-based sampling analysis with stack collection enabled.
Example 1: Basic Hotspots Top-down Report
This example displays the report for the specified Basic Hotspots analysis result with functions stacks limited to 5 elements.
$ amplxe-cl -report top-down -r r001hs -limit 5
Function Stack CPU Time:Total CPU Time:Effective Time:Total CPU Time:Effective Time:Idle:Total CPU Time:Effective Time:Poor:Total CPU Time:Effective Time:Ok:Total
CPU Time:Effective Time:Ideal:Total CPU Time:Spin Time:Total CPU Time:Overhead Time:Total
---------------------- -------------- ----------------------------- ---------------------------------- ---------------------------------- -------------------------------- ----------------------------------- ------------------------ ----------------------------
Total 100.000% 100.000% 100.000% 100.000% 100.000%
100.000% 100.000% 100.000%
func@0x6b2daccf 99.853% 99.835% 27.390% 100.000% 100.000%
100.000% 100.000% 100.000%
func@0x6b2dacf0 99.853% 99.835% 27.390% 100.000% 100.000%
100.000% 100.000% 100.000%
BaseThreadInitThunk 99.853% 99.835% 27.390% 100.000% 100.000%
100.000% 100.000% 100.000%
thread_video 95.614% 97.876% 0.0% 96.325% 99.456%
100.000% 78.195% 0.0%
Example 2: Advanced Hotspots Report with Enabled Call Stack
This example runs the Advanced Hotspots analysis with enabled call stack collection.
$ amplxe-cl -collect advanced-hotspots - knob enable-stack-collection=true -- home/tachyon
This command generates the top-down report for the previously collected result and shows the result for columns with the time:total string in the title.
$ amplxe-cl -report top-down -r r001ah -column=time:total
Function Stack CPU Time:Total CPU Time:Effective Time:Total CPU Time:Spin Time:Total Context Switch Time:Total Context Switch Time:Wait Time:Total Context Switch Time:Inactive Time:Total
---------------------- -------------- ----------------------------- ------------------------ ------------------------- ----------------------------------- ---------------------------------------
Total 100.000% 100.000% 100.000% 100.000% 100.000% 100.000%
func@0x6b2daccf 97.595% 97.704% 89.202% 65.777% 90.121% 62.893%
func@0x6b2dacf0 97.595% 97.704% 89.202% 65.777% 90.121% 62.893%
BaseThreadInitThunk 97.595% 97.704% 89.202% 65.777% 90.121% 62.893%
threadstartex 67.091% 67.855% 8.335% 29.825% 9.027% 32.289%
Example 3: Filtered Advanced Hotspots Report with Disabled Stack Collection
This example runs the Advanced Hotspots analysis with disabled call stack collection.
$ amplxe-cl -collect advanced-hotspots - knob enable-stack-collection=false -- home/tachyon
This command generates the top-down report for the previously collected result, and shows the result for columns with the time:total string in the title. The report does not include information about program unit callees, as it was not collected during the analysis.
$ amplxe-cl -report top-down -r r001ah -column=time:total
Function Stack CPU Time:Total CPU Time:Effective Time:Total CPU Time:Spin Time:Total ---------------------- -------------- ----------------------------- ------------------------ Total 100.000% 100.000% 100.000% grid_intersect 50.172% 50.213% 0.0% sphere_intersect 31.740% 31.766% 0.0% grid_bounds_intersect 3.766% 3.769% 0.0% pos2grid 0.778% 0.778% 0.0% ...