Interface of a profiling service. More...
#include <arcane/utils/IProfilingService.h>
Public Member Functions | |
| virtual void | initialize ()=0 |
| Initializes the profiling service. | |
| virtual bool | isInitialized () const |
| Indicates if initialize() has already been called. | |
| virtual void | startProfiling ()=0 |
| Starts profiling. | |
| virtual void | switchEvent ()=0 |
| virtual void | stopProfiling ()=0 |
| Stops profiling. | |
| virtual bool | isRunning () const =0 |
| Indicates if the profiling is running. | |
| virtual void | printInfos (bool dump_file=false)=0 |
| Displays profiling information. | |
| virtual void | getInfos (Int64Array &)=0 |
| virtual void | dumpJSON (JSONWriter &writer)=0 |
| Writes the profiling information to the writer writer. | |
| virtual void | reset ()=0 |
| Resets the counters. | |
| virtual ITimerMng * | timerMng ()=0 |
| Timer using the features of this service if they exist. Can be null. | |
Interface of a profiling service.
initialize() must be called before using the instance. You can then call startProfiling()/stopProfiling() to start and stop profiling.
When profiling is stopped, you can call printInfos() to display the profiling information. The reset() method allows you to reset the profiling information.
Definition at line 44 of file IProfilingService.h.
|
pure virtual |
Writes the profiling information to the writer writer.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Referenced by Arcane::CodeService::initCase().
|
pure virtual |
Initializes the profiling service.
This method can only be called once.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Referenced by Arcane::TimeLoopMng::doComputeLoop().
|
inlinevirtual |
Indicates if initialize() has already been called.
Reimplemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Definition at line 60 of file IProfilingService.h.
Referenced by Arcane::TimeLoopMng::doComputeLoop().
|
pure virtual |
Indicates if the profiling is running.
The profiling is running between a call to startProfiling() and stopProfiling().
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Referenced by Arcane::SubDomain::readOrReloadMeshes().
|
pure virtual |
Displays profiling information.
Profiling must be stopped. If dump_file is true, file outputs containing the information are generated, which may take time.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Referenced by Arcane::TimeLoopMng::doComputeLoop().
|
pure virtual |
Resets the counters.
Profiling must be stopped for this.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Referenced by Arcane::TimeLoopMng::doComputeLoop().
|
pure virtual |
Starts profiling.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
|
pure virtual |
Stops profiling.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.
Referenced by Arcane::SubDomain::readOrReloadMeshes().
|
pure virtual |
Timer using the features of this service if they exist. Can be null.
Implemented in Arcane::PapiPerformanceService, and Arcane::ProfPerformanceService.