HP Caliper 5.3 User Guide (5900-1558, February 2011)

Contents
About This Document...................................................................................12
1 HP Caliper at a Glance............................................................................16
What Is HP Caliper?...............................................................................................................16
What Does HP Caliper Run On?..............................................................................................18
Supported Hardware and Operating Systems........................................................................18
Supported Compilers and Application Environments...............................................................18
Summary of HP Caliper Features..............................................................................................19
2 Getting Started with the HP Caliper Command-Line Interface..........................20
Example: Running fprof on a Short Program, with Default Output..................................................20
Example: Adding Instructions to an fprof Report..........................................................................24
Types of Measurements...........................................................................................................26
Global Measurement..........................................................................................................26
Sampled Measurements......................................................................................................26
Precise Measurements (HP-UX only) .........................................................................26
What to Look for in Using HP Caliper.......................................................................................27
Syntax for caliper Command....................................................................................................27
Basic Tasks: A Quick Reference................................................................................................28
Starting HP Caliper............................................................................................................28
Stopping HP Caliper..........................................................................................................28
Showing HP Caliper Options...............................................................................................28
Creating a Call Graph Profile with HP Caliper.......................................................................28
Creating a Text Report for Analysis.......................................................................................29
Creating a Report Based on Your Collected Data...................................................................29
Using the HP Caliper Advisor...................................................................................................29
Restrictions on Using HP Caliper...............................................................................................29
Additional HP Caliper Commands............................................................................................30
Getting Information About HP Caliper.......................................................................................30
3 Getting Started with the HP Caliper GUI......................................................31
What Is the HP Caliper GUI?...................................................................................................31
Window Basics......................................................................................................................31
Projects View .................................................................................................................32
Collect View ..................................................................................................................33
Analyze View ................................................................................................................34
Advisor View .................................................................................................................35
Console View ................................................................................................................36
Diagnostics View ...........................................................................................................37
Help View .....................................................................................................................37
Tips for Using Views...........................................................................................................38
Making Measurements............................................................................................................38
Hints on How to Make Measurements...................................................................................38
Exploring Performance Data.....................................................................................................39
Getting Performance Tuning Advice...........................................................................................39
Getting Help..........................................................................................................................40
Starting the GUI.....................................................................................................................40
Native (Local) GUI.............................................................................................................40
Contents 3