User guide
Nios II IDE Help System
Views
Call Hierarchy View (Profiling Perspective)
This view automatically displays as part of the Profiling perspective. You can also open this
view from the Window menu by pointing to Show View, clicking Other..., expanding
Profiling, and double-clicking Call Hierarchy.
The Call Hierarchy view displays the time spent in each function, based on the standard
gmon.out data, in an easy-to-read tree format. This view also calculates and displays the
percentage of time spent in each function. In this view you can follow the function call
sequences much more easily than reading the gprof output.
There are two ways to view the call hierarchy data.
Top Down—call direction lists the calling functions, with the functions they called
nested below. The first entry in the Call Hierarchy view is spontaneous. This is a term
gprof uses when it cannot determine what the calling function is. There are two sets of
actual time and percentage time figures for each function. The first set represents the
time spent within the function. The second set represents the total time spent within
the function plus all functions called by that function. Each indented line in the view
drills down into the details of time and percentage spent in each called function. In the
top-down mode, when cycles of recursion exist in your code, a --> symbol appears to
the left of the function name indicating that the called function cycles.
Inverted—call direction lists the called functions, with the functions that called them
nested below. The first entry in the Call Hierarchy view is inverted calls. Actual time
and percentage time figures for each function represent time spent within the
function.
Inverted call direction lists the called functions, with the functions that called them nested
below.
The first entry in the Call Hierarchy view is inverted calls. Actual time and percentage
time figures for each function represent time spent within the function.
To reverse call direction display, right-click in the Call Hierarchy view, and click Toggle Call
Direction.
Note: You can load the source code for functions displayed in this view into the Editor
view. To do this, right-click the file name, and then click Show Source.
Related Nios II IDE Help Topics
About Profiling with the Nios II IDE
Profiling Perspective
Related Topics on the Web
AN 391: Profiling Nios II Systems at www.altera.com/literature/an/an391.pdf
The GNU Profiler—GNU gprof documentation from the Free Software Foundation
140