HP Caliper User's Guide
2
Shows total IP sample hits (1275) and starting line number (38) for the function.
A tilde (~) preceding a line number (~38) indicates that the line number is
approximate due to optimization.
3
Names the source file of function main.
4
Shows sample IP hits (41) for statement at line 16 (~ indicates the line number is
approximate due to optimization) of matmul.c. Sample IP hits for statements are
shown in parentheses; sample IP hits for instructions are not.
Source lines are preceded by >. If a source line is out of order or is associated with
multiple, noncontiguous instructions, the source line is also preceded by an asterisk
(*>).
5
Shows sample IP hits (4) for the instruction bundle starting at function offset 0x0290,
where the associated source column is ~9 (~ indicates the source column is
approximate due to optimization). Instructions are preceded by template
information: in this case, M for slot 0 and slot 1, and F_ for slot 2.
6
Shows a discontinuity marker, which indicates that some instruction bundles
without associated data have been left out of the report. (To report all disassembly,
use the --context-lines option.)
Types of Measurements
HP Caliper is capable of three types of performance measurement:
• A global measurement of total run metrics
• A sampled measurement based on the granularity you specify
• A precise measurement of every execution path in your code (HP-UX only)
See Table 4-1 (page 59).
Global Measurement
A global measurement gives you a single value for a specific metric of your program,
such as total CPU time used.
The only global measurement available in HP Caliper is ecount (total CPU time).
A global measurement is best used for:
• Comparing the effect of different types of test data that your program processes
• Comparing the benefits of different compile-time optimization settings
• Detecting performance regressions caused by program modifications
You can use a global measurement to help you identify what performance areas of
your program to investigate further.
The advantage of a global measurement is that it does not affect your program's
performance.
The disadvantage of a global measurements is that it does not identify specific parts
of your program that might benefit from optimization.
Types of Measurements 35