HP Caliper User Guide Release 5.5 (5900-2351, August 2012)

Function Details....................................................................................................................110
Disassembly Listing...............................................................................................................110
Branch Targets in Disassembly Listings................................................................................111
Source Position Correlation....................................................................................................111
Source Line Data.............................................................................................................111
Address Types Shown............................................................................................................111
How Functions Are Named in Reports.....................................................................................112
Unnamed Functions..........................................................................................................112
Unknown Functions..........................................................................................................112
VSE Information Shown in Report Output (HP-UX only) ..................................................112
HyperThreading Information for Dual-Core Itanium 2 and Itanium 9300 Quad-Core Processors Shown
in Report Output...................................................................................................................113
How HP Caliper Saves Data in Databases...............................................................................114
Names and Locations for the Databases.............................................................................114
Changing the Default Name and Location......................................................................114
Creating Reports from Multiple Databases...............................................................................115
Using the caliper report Command to Create a Report from One or More Databases................116
Using the caliper merge Command to Merge Data From Multiple Collection Runs....................116
Using the caliper diff Command to Difference Data Collected in Two Databases......................118
Example of How to Use the caliper diff Command...........................................................120
10 Producing a Sampled Call Graph Profile Analysis.....................................121
How Sampled Call Graph Profile Analysis Works.....................................................................121
Differences Between scgprof and cgprof..................................................................................121
Running the HP Caliper Sampled Call Graph Profile..................................................................122
Sampled Call Graph Text Report Example ...............................................................................122
Sampled Call Graph Profile Report Details...............................................................................131
Flat Profile Part of the Report..............................................................................................131
Call Graph Part of the Report............................................................................................131
Hot Call Paths Part of the Report........................................................................................131
Function Indexes..............................................................................................................131
Diagnostic Messages........................................................................................................132
gprof Fallacy and Possibly Misleading Results...........................................................................132
11 Producing a Sampled Call Stack Profile Analysis.......................................133
Running HP Caliper to Produce a Call Stack Profile...................................................................133
Call Stack Profile Text Report Example for HP-UX.......................................................................133
Call Stack Profile Text Report Example for Linux........................................................................141
Call Stack Profile Report Details..............................................................................................148
Flat Profile Part of the Report..............................................................................................148
Blocking Primitives Summary Part of the Report....................................................................148
Thread Synchronization Primitive's Holder and Waiter Thread Analysis (HP-UX 11.31 only)....148
Hot Call Paths Part of the Report........................................................................................149
Call Graph Part of the Report............................................................................................150
Function Indexes..............................................................................................................150
Avoids gprof Fallacy.............................................................................................................150
Limitations to Using cstack.....................................................................................................150
Pstack like functionality..........................................................................................................150
12 Performing CPU Metrics Analysis (HP-UX only) ................................152
13 HP Caliper Features Specific to HP-UX (HP-UX only) .........................153
Measuring Memory Usage Concurrently with Other Measurements (HP-UX only) ....................153
Examples of the --memory-usage= Option............................................................................154
Example Report Output.....................................................................................................155
How to Read the Reports..................................................................................................155
System Memory Configuration Table..............................................................................155
Contents 7