next up previous
Next: Stopping the counters in Up: Instrumentation routines Previous: Closing call: hpmTerminate


Starting the counters in a non-threaded region: hpmStart

To start the counters outside a threaded region, use the command:
  f_hpmstart(instid, label)
  hpmStart(instid, label)
Instrumented sections can be nested. An instrumented section can be entered several times during code execution. This will restart the counting. Placing instrumentation inside a loop is a typical example for restarting. If a set of counters is restarted the counters will be added to. See here for an example code with nested and restarted instrumented sections.



Joachim Hein
2003-11-03