Figure 13 Steps in Using the Advisor

Make sugg ested chang es

 

 

 

 

 

 

 

 

 

One or more

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Build

 

 

 

 

 

 

HP Calip er

 

 

 

 

 

 

 

Gain better

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start

 

 

 

 

 

 

 

HP Calip er

 

 

 

 

 

 

 

 

 

und erstandin g

 

End

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

appl ication

 

 

 

 

performanc e

 

 

Advisor

 

 

 

 

 

 

 

of appl ication

 

 

 

 

 

 

 

 

 

 

 

runs

 

 

 

 

 

 

 

 

 

 

performanc e

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Make sugg ested performanc e runs

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]]

78 Using the HP Caliper Advisor