Public Member Functions | |
| PapiPerformanceCounterService (const ServiceBuildInfo &sbi) | |
| void | build () |
| void | initialize () override |
| Initializes the service. | |
| void | _addEvent (int event) |
| void | start () final |
| Starts tracking performance counters. | |
| void | stop () final |
| Stops tracking performance counters. | |
| bool | isStarted () const final |
| Indicates if the service has started (start() has been called). | |
| Integer | getCounters (Int64ArrayView counters, bool do_substract) final |
| Retrieves the current values of the counters. | |
| Int64 | getCycles () final |
| Value of the counter for the number of CPU cycles. | |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
Private Attributes | |
| int | m_nb_event = 0 |
| int | m_event_set = 0 |
| bool | m_is_started = false |
Additional Inherited Members | |
| Static Public Attributes inherited from Arcane::IPerformanceCounterService | |
| static const int | MIN_COUNTER_SIZE = 8 |
| Minimum size of the view for getCounters(). | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Definition at line 579 of file PapiPerformanceService.cc.
|
inline |
Definition at line 585 of file PapiPerformanceService.cc.
|
inline |
Definition at line 592 of file PapiPerformanceService.cc.
|
inline |
Definition at line 624 of file PapiPerformanceService.cc.
|
inline |
Definition at line 600 of file PapiPerformanceService.cc.
|
inlinefinalvirtual |
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. |
Implements Arcane::IPerformanceCounterService.
Definition at line 656 of file PapiPerformanceService.cc.
References Arcane::TraceAccessor::error(), and Arcane::IPerformanceCounterService::MIN_COUNTER_SIZE.
Referenced by getCycles().
|
inlinefinalvirtual |
Value of the counter for the number of CPU cycles.
Implements Arcane::IPerformanceCounterService.
Definition at line 674 of file PapiPerformanceService.cc.
References getCounters().
|
inlineoverridevirtual |
Initializes the service.
Implements Arcane::IPerformanceCounterService.
Definition at line 604 of file PapiPerformanceService.cc.
References ARCANE_FATAL.
|
inlinefinalvirtual |
Indicates if the service has started (start() has been called).
Implements Arcane::IPerformanceCounterService.
Definition at line 651 of file PapiPerformanceService.cc.
|
inlinefinalvirtual |
Starts tracking performance counters.
Implements Arcane::IPerformanceCounterService.
Definition at line 633 of file PapiPerformanceService.cc.
References ARCANE_FATAL.
|
inlinefinalvirtual |
Stops tracking performance counters.
Implements Arcane::IPerformanceCounterService.
Definition at line 642 of file PapiPerformanceService.cc.
References ARCANE_FATAL.
|
private |
Definition at line 685 of file PapiPerformanceService.cc.
|
private |
Definition at line 686 of file PapiPerformanceService.cc.
|
private |
Definition at line 684 of file PapiPerformanceService.cc.