Profiling service using 'setitimer'. More...
Public Member Functions | |
| ProfPerformanceService (const ServiceBuildInfo &sbi) | |
| void | initialize () override |
| Initializes the profiling service. | |
| bool | isInitialized () const override |
| Indicates if initialize() has already been called. | |
| void | startProfiling () override |
| Starts profiling. | |
| void | switchEvent () override |
| void | stopProfiling () override |
| Stops profiling. | |
| void | printInfos (bool dump_file) override |
| Displays profiling information. | |
| void | getInfos (Int64Array &) override |
| void | dumpJSON (JSONWriter &writer) override |
| Writes the profiling information to the writer writer. | |
| void | reset () override |
| Resets the counters. | |
| ITimerMng * | timerMng () override |
| Timer using the features of this service if they exist. Can be null. | |
| Public Member Functions inherited from Arcane::AbstractService | |
| ~AbstractService () override | |
| Destructor. | |
| virtual void | build () |
| Build-level construction of the service. | |
| IServiceInfo * | serviceInfo () const override |
| Access to service information. See IServiceInfo for details. | |
| IBase * | serviceParent () const override |
| Access to the base interface of main Arcane objects. | |
| IService * | serviceInterface () override |
| Returns the low-level IService interface of the service. | |
| 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 |
| Public Member Functions inherited from Arcane::IService | |
| virtual | ~IService () |
| Releases resources. | |
Public Attributes | |
| bool | m_is_initialized = false |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::AbstractService | |
| AbstractService (const ServiceBuildInfo &) | |
| Constructor from a ServiceBuildInfo. | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
| Protected Member Functions inherited from Arcane::IService | |
| IService () | |
| Constructor. | |
Profiling service using 'setitimer'.
Definition at line 50 of file ProfPerformanceService.cc.
|
explicit |
Definition at line 87 of file ProfPerformanceService.cc.
|
override |
Definition at line 96 of file ProfPerformanceService.cc.
|
overridevirtual |
Writes the profiling information to the writer writer.
Implements Arcane::IProfilingService.
Definition at line 288 of file ProfPerformanceService.cc.
|
overridevirtual |
Implements Arcane::IProfilingService.
Definition at line 298 of file ProfPerformanceService.cc.
|
overridevirtual |
Initializes the profiling service.
This method can only be called once.
Implements Arcane::IProfilingService.
Definition at line 214 of file ProfPerformanceService.cc.
References Arcane::TraceAccessor::traceMng().
|
inlineoverridevirtual |
Indicates if initialize() has already been called.
Reimplemented from Arcane::IProfilingService.
Definition at line 62 of file ProfPerformanceService.cc.
|
overridevirtual |
Displays profiling information.
Profiling must be stopped. If dump_file is true, file outputs containing the information are generated, which may take time.
Implements Arcane::IProfilingService.
Definition at line 278 of file ProfPerformanceService.cc.
|
overridevirtual |
Resets the counters.
Profiling must be stopped for this.
Implements Arcane::IProfilingService.
Definition at line 307 of file ProfPerformanceService.cc.
|
overridevirtual |
Starts profiling.
Implements Arcane::IProfilingService.
Definition at line 230 of file ProfPerformanceService.cc.
|
overridevirtual |
Stops profiling.
Implements Arcane::IProfilingService.
Definition at line 256 of file ProfPerformanceService.cc.
|
overridevirtual |
Implements Arcane::IProfilingService.
Definition at line 248 of file ProfPerformanceService.cc.
|
inlineoverridevirtual |
Timer using the features of this service if they exist. Can be null.
Implements Arcane::IProfilingService.
Definition at line 70 of file ProfPerformanceService.cc.
| bool Arcane::ProfPerformanceService::m_is_initialized = false |
Definition at line 74 of file ProfPerformanceService.cc.