$ caliper overview | \ | |
\ | ||
20000,5%,DATA_EAR_EVENTS \ | ||
250ms my_app |
|
In the above example, the overview measurement will run the fprof measurement for 3 seconds, dcachemeasurement for 3 seconds, and cstack measurement for 3 seconds continuously until the program terminates. The fprof measurement will use a sampling interval of 1 million CPU_CYCLES (or CPU_OP_CYCLES on
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
Simultaneous fprof Sampling on Multiple PMU Counters 45