HP Caliper User's Guide

cgprof Report Description
Available only on HP-UX.
With the cgprof measurement, produced by the cgprof measurement configuration
file, HP Caliper measures and reports both flat and call graph profiles (much like
standard gprof).
The HP Caliper gprof-like report includes these results:
Total execution times for each function in the program
Call counts for each function in the program
Cycle information, member functions, time and call counts
Most likely hot call paths in the program
Example Command Line for Text Report
$ caliper cgprof -o reports/cgprof.txt ./wordplay thequickbrownfox
Example Command Line for CSV Report
$ caliper cgprof --csv csvout ./wordplay thequickbrownfox
HP Caliper Call Graph Profile Results Accuracy
The HP Caliper call graph profile report directly measures call graph data. The number
of calls are derived by counting, not sampling. They are completely accurate and will
not vary from run to run if your program is deterministic.
The HP Caliper call graph profile report's sampling of IP data is statistical, so you
should expect a small variation (less than +/- 5%) in the timing data that HP Caliper
collects for different runs of your application.
The times cgprof reports are affected by the instrumentation done to collect the data.
The times are inaccurate in absolute terms but valid in relative terms.
HP Caliper accounts for 100 percent of time under main for all applications with 0
(zero) unattributed samples.
An entry called *ROOT* reflects 100 percent of the time for your executable, which
represents the time from:
All the functions with no parents
Out-of-context modules
Stub code
Call Graph Profile Metrics
Table B-3 “Information in cgprof Measurement Report Fields (Flat Profile)” shows the
information found in the flat profile part of a Call Graph Profile report.
In this table, “program object” refers to any of the following:
Load module
Function
232 Descriptions of Measurement Reports