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

Figure 13 Steps in Using the Advisor
Make
sugg ested
chang es
Make
sugg ested
performanc e
runs
Gain better
und erstandin g
of appl ication
performanc e
Start
Build
applicat ion
One or more
HP Calip er
performanc e
runs
HP Calip er
Advisor
End
To use the HP Caliper Advisor, you perform these steps:
1. Build the application with an initial set of compiler/linker options.
2. Make one or more HP Caliper measurement runs on the application, keeping track of the
names of the databases where the performance data is kept.
3. Run the Advisor, using the databases containing the performance data. The advice is output
(printed) in a report file from the Advisor, with this kind of information:
Explanations of the performance problems indicated by the performance data collected
Suggestions for changes to the application code, compiler options, linker options, and
so forth for improving the identified performance problems
Suggestions for additional performance runs to further investigate the identified or other
potential performance problems
4. Based on the advice you receive from the Advisor, do either of the following:
Change the application code and/or build options and start over at step 1 with the
revised application and a new set of performance measurements and databases.
or:
Make new performance measurements in step 2, saving the data to a new database,
and rerun the Advisor.
5. Continue making adjustments as long as you keep receiving meaningful data.
Command Line to Invoke the Advisor
The command line is:
$ caliper advise [advise_options] [database_list]
where advise_options are:
--advice-classes [all]|[[general][:cpu][:memory][:io][:system]]
--advice-cutoff min-index[,min-count[,max-count]]
--advice-details [all]|[[description][:improvement][:measurement]
[:explanation][:rule]]
--analysis-focus [executable:]name|all[,[executable:]name],...
78 Using the HP Caliper Advisor