HP Caliper User's Guide

11 Producing a Sampled Call Stack Profile Analysis......................................................................171
Running HP Caliper to Produce a Call Stack Profile.......................................................171
Call Stack Profile Text Report Example for HP-UX..........................................................172
Call Stack Profile Text Report Example for Linux............................................................182
Call Stack Profile Report Details.......................................................................................191
Flat Profile Part of the Report......................................................................................191
Blocking Primitives Summary Part of the Report.......................................................191
Thread Synchronization Primitive's Holder and Waiter Thread Analysis (HP-UX
11.31 only)..............................................................................................................191
Hot Call Paths Part of the Report................................................................................193
Call Graph Part of the Report......................................................................................193
Function Indexes.........................................................................................................193
Avoids gprof Fallacy.........................................................................................................193
Limitations to Using cstack...............................................................................................193
Pstack like functionality....................................................................................................194
12 Performing CPU Metrics Analysis ....................................................................................197
13 HP Caliper Features Specific to HP-UX ............................................................................199
Measuring Memory Usage Concurrently with Other Measurements .....................199
Examples of the --memory-usage= Option..................................................................201
Example Report Output..............................................................................................201
How to Read the Reports............................................................................................202
System Memory Configuration Table....................................................................202
Process Memory Usage Table.................................................................................203
Measuring System Usage Concurrently with Other Measurements .......................204
Example Report Output..............................................................................................205
Interpreting the Data...................................................................................................207
Attaching to a Running Process to Perform Precise Measurements ........................207
Taking PMU Samples in Your Code .........................................................................208
Triggering PMU Samples in Specific Code Regions...................................................208
Precautions When Using Triggered Samples.........................................................210
Restricting PMU Measurements to Specific Code Regions.........................................211
A HP Caliper Diagnostic and Warning Messages.........................................................................215
ERROR #28: Caliper Invalid Measurement Combination................................................215
Instructions Labeled STUB...............................................................................................215
Mispredicted Branches.....................................................................................................215
PMU Sample Hits Outside Function Range.....................................................................219
scgprof Reports Require Kernel Patch .....................................................................220
Table of Contents 9