Interface of a service for accessing performance counters. More...
#include <arcane/utils/IPerformanceCounterService.h>
Public Member Functions | |
| virtual void | initialize ()=0 |
| Initializes the service. | |
| virtual void | start ()=0 |
| Starts tracking performance counters. | |
| virtual void | stop ()=0 |
| Stops tracking performance counters. | |
| virtual bool | isStarted () const =0 |
| Indicates if the service has started (start() has been called). | |
| virtual Int32 | getCounters (Int64ArrayView counters, bool do_substract)=0 |
| Retrieves the current values of the counters. | |
| virtual Int64 | getCycles ()=0 |
| Value of the counter for the number of CPU cycles. | |
Static Public Attributes | |
| static const int | MIN_COUNTER_SIZE = 8 |
| Minimum size of the view for getCounters(). | |
Interface of a service for accessing performance counters.
Definition at line 31 of file IPerformanceCounterService.h.
|
pure virtual |
Retrieves the current values of the counters.
This method must only be called if isStarted() is true.
If do_substract is false, fills counters with the current values of the counters. If do_substract is true, fills counters with the difference between the current values and those in counters during the call.
The counter at index 0 is always the number of cycles. counters must have enough elements to provide at least MIN_COUNTER_SIZE counters.
| the | number of counters provided. |
|
pure virtual |
Value of the counter for the number of CPU cycles.
|
pure virtual |
Starts tracking performance counters.
|
pure virtual |
Stops tracking performance counters.
|
static |
Minimum size of the view for getCounters().
Definition at line 36 of file IPerformanceCounterService.h.