Profiler output: Call graph
The profiler call graph provides detailed function call information.
The section "Call graph" provides the following details for each function:
- The functions that called it, the number of calls, and an estimation of the percentage of time spent in these functions.
- The functions called, the number of calls, and an estimation of the time that was spent in the subroutines called from this function.
Tip: Runtime system internal function names start with the
rts_
prefix. For example, the rts_display()
function implements
the DISPLAY
instruction.Column name | Description |
---|---|
index |
Each function has an index which appears at the beginning of its primary line. |
%total |
Percentage of time spent in this function. Includes time spent in subroutines called from this function. |
%self |
Percentage of time spent in this function excluding the time spent in subroutines called from this function. |
%child |
Percentage of time spent in the functions called from this function. |
calls/of |
Number of calls / Total number of calls |
name |
Function name |
Output example:
index %total %self %child calls/of name
...
1.29 0.10 1.18 1/2 <-- main
24.51 1.18 23.33 1/2 <-- fb
[4] 25.80 1.29 24.51 2 *** fc
24.51 1.43 23.08 7/8 --> fa
Description:
- The three stars
***
indicate the function that is analyzed:fb
. fc
consumed 25.80% of the CPU time, 24.51% was in the called functions, 1.29% in thefc
function code.fc
has been called two times (one time bymain
and a second time byfb
)fc
has called thefa
function 7 times.fa
has been called 8 times in the program.