HP Caliper User's Guide

scgprof Measurement Report Description
With the scgprof measurement, produced by the scgprof measurement configuration
file, HP Caliper measures and reports both flat and call graph profiles (much like
standard gprof).
The call graph is produced by statistical sampling of the processor's performance
monitoring unit (PMU) to determine function calls in an application. The call graph
is not exact, because it does not show every function call, but it is statistically useful.
Example Command Line for Text Report
$ caliper scgprof -o reports/scgprof.txt ./wordplay thequickbrownfox
Example Command Line for CSV Report
$ caliper scgprof --csv csvout ./wordplay thequickbrownfox
scgprof Measurement Report Metrics (Flat Profile)
Table B-21 “Information in scgprof Measurement Report Fields (Flat Profile)” shows
the information found in Sampled Call Graph Profile reports.
In this table, “program object” refers to any of the following:
Load module
Function
Source statement
Instruction bundle
The numbers of calls in the descriptions are smaller than the actual calls made by the
application, because the call graph is produced by sampling.
Table B-21 Information in scgprof Measurement Report Fields (Flat Profile)
DescriptionColumn
Percent of the total IP samples attributable to a given program object.% Total IP Samples
Running sum of the percent of total IP samples accounted for by the given
program object and those listed above it.
Cumulat % of Total
Total number of IP samples attributed to the given program object.IP Samples
Number of seconds accounted for by this function/module alone, if this
function/module is profiled; otherwise blank.
Secs in Func/Module
Number of times this function was invoked, if this function is profiled; otherwise,
blank.
Call Count
Average number of milliseconds per function call.Msecs per Call
Shared library or the main executable.Load Module
Routine from your application.Function
288 Descriptions of Measurement Reports