HP Caliper User's Guide
Getting Started with the Advisor: Examples
To run the Advisor, you need to make one or more HP Caliper measurement runs on
an application.
Simplest Example
Assume that you have made these data collection runs:
$ caliper cpu my_app
$ caliper fprof my_app
$ caliper ecount my_app
The output databases are saved in the databases directory by default and are named
cpu, fprof, and ecount.
Then, you run the Advisor using this command:
$ caliper advise
HP Caliper looks in the databases directory for databases and produces an analysis of
all current HP Caliper runs, using all the databases in the databases directory. If no
databases are found, you receive an error message telling you that there are no runs
to analyze.
The analysis report is produced on stdout.
NOTE: You will receive an error message specifying that the “global name 'dbase_dir'
is not defined” if the default databases directory contains old performance data. To
correct this problem, you should delete the old performance data in the databases
directory or specify a different database path. For information on how to specify a
database path, see “Command Line to Invoke the Advisor” (page 104).
More Typical Examples
These examples are more typical of how you will use the Advisor.
When you first start using the Advisor, you will typically run these measurements:
• On HP-UX systems, use:
$ caliper cpu my_app
$ caliper fprof my_app
• On Linux systems, use:
$ caliper ecount my_app
$ caliper fprof my_app
Next, run the Advisor on the collected performance data:
$ caliper advise
HP Caliper looks for the databases in the databases directory and produces an analysis
report on stdout. If the Advisor recommends an additional measurement run, make
the run. For example:
106 Using the HP Caliper Advisor