use 5% as the sampling period variation. The cstack measurement will take one sample for every 250 milliseconds.
On
Simultaneous fprof Sampling on Multiple PMU Counters
Up until Caliper 5.1, the fprof measurement sampled the instruction pointer (IP) on only one counter (every 500,000 CPU cycles by default). As of Caliper 5.2, the fprof measurement is enhanced to support simultaneous IP sampling on mutiple PMU events.
The
The following example performs simultaneous fprof sampling on an application:
$ caliper fprof
In this example, the HP Caliper fprof measurement run will collect IP samples on two different PMU events (for every 500000 CPU cycles and for every 600000 retired instructions). In the generated fprof report, the IP sample hits are reported in individual
A user can specify upto 4 sampling events on Itanium2 systems and up to 8 sampling events on
While reporting, the
Location of Measurement Configuration Files
A measurement is actually the name of a measurement configuration file that contains parameter settings for the measurement to be made.
When you run HP Caliper, you can simply specify the measurement you want to run. Or, if you want to use a particular measurement configuration file, you can use a fully qualified path name.
If you specify a path name, either relative or absolute, HP Caliper runs only if it can find the measurement configuration file in the specified directory. For example:
$ caliper /home/perf/config/ecount myprog
In this example, HP Caliper reports a “file not found” error if the file ecount is not in the /home/ perf/config/ directory.
If you specify a measurement without a path, HP Caliper looks for the named measurement configuration file in these locations, in this order:
1.Your working directory
2.HP Caliper home directory in the config subdirectory
You can copy the measurement configuration files provided with HP Caliper and then modify them to make your own customized set of measurement configuration files. You can also set up
You are free to rename measurement configuration files.
Specifying Option Values in Measurement Configuration Files
You can specify options on the command line, in a measurement configuration file, or in the
.caliperinit file. See “Multiple Ways to Specify HP Caliper Option Values” (p. 48).
46 HP Caliper Measurement Configuration Files