Arcane  4.2.3.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ProfPerformanceService Class Reference

Profiling service using 'setitimer'. More...

Inheritance diagram for Arcane::ProfPerformanceService:
Collaboration diagram for Arcane::ProfPerformanceService:

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.
bool isRunning () const override
 Indicates if the profiling is running.
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.

Detailed Description

Profiling service using 'setitimer'.

Definition at line 50 of file ProfPerformanceService.cc.

Constructor & Destructor Documentation

◆ ProfPerformanceService()

Arcane::ProfPerformanceService::ProfPerformanceService ( const ServiceBuildInfo & sbi)
explicit

Definition at line 88 of file ProfPerformanceService.cc.

◆ ~ProfPerformanceService()

Arcane::ProfPerformanceService::~ProfPerformanceService ( )
override

Definition at line 97 of file ProfPerformanceService.cc.

Member Function Documentation

◆ dumpJSON()

void Arcane::ProfPerformanceService::dumpJSON ( JSONWriter & writer)
overridevirtual

Writes the profiling information to the writer writer.

Implements Arcane::IProfilingService.

Definition at line 292 of file ProfPerformanceService.cc.

◆ getInfos()

void Arcane::ProfPerformanceService::getInfos ( Int64Array & )
overridevirtual

Implements Arcane::IProfilingService.

Definition at line 302 of file ProfPerformanceService.cc.

◆ initialize()

void Arcane::ProfPerformanceService::initialize ( )
overridevirtual

Initializes the profiling service.

This method can only be called once.

Implements Arcane::IProfilingService.

Definition at line 215 of file ProfPerformanceService.cc.

References Arcane::TraceAccessor::traceMng().

Here is the call graph for this function:

◆ isInitialized()

bool Arcane::ProfPerformanceService::isInitialized ( ) const
inlineoverridevirtual

Indicates if initialize() has already been called.

Reimplemented from Arcane::IProfilingService.

Definition at line 62 of file ProfPerformanceService.cc.

◆ isRunning()

bool Arcane::ProfPerformanceService::isRunning ( ) const
overridevirtual

Indicates if the profiling is running.

The profiling is running between a call to startProfiling() and stopProfiling().

Implements Arcane::IProfilingService.

Definition at line 321 of file ProfPerformanceService.cc.

◆ printInfos()

void Arcane::ProfPerformanceService::printInfos ( bool dump_file)
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 282 of file ProfPerformanceService.cc.

◆ reset()

void Arcane::ProfPerformanceService::reset ( )
overridevirtual

Resets the counters.

Profiling must be stopped for this.

Implements Arcane::IProfilingService.

Definition at line 311 of file ProfPerformanceService.cc.

◆ startProfiling()

void Arcane::ProfPerformanceService::startProfiling ( )
overridevirtual

Starts profiling.

Implements Arcane::IProfilingService.

Definition at line 231 of file ProfPerformanceService.cc.

References ARCANE_FATAL.

◆ stopProfiling()

void Arcane::ProfPerformanceService::stopProfiling ( )
overridevirtual

Stops profiling.

Implements Arcane::IProfilingService.

Definition at line 259 of file ProfPerformanceService.cc.

◆ switchEvent()

void Arcane::ProfPerformanceService::switchEvent ( )
overridevirtual

Implements Arcane::IProfilingService.

Definition at line 251 of file ProfPerformanceService.cc.

◆ timerMng()

ITimerMng * Arcane::ProfPerformanceService::timerMng ( )
inlineoverridevirtual

Timer using the features of this service if they exist. Can be null.

Implements Arcane::IProfilingService.

Definition at line 71 of file ProfPerformanceService.cc.

Member Data Documentation

◆ m_is_initialized

bool Arcane::ProfPerformanceService::m_is_initialized = false

Definition at line 75 of file ProfPerformanceService.cc.


The documentation for this class was generated from the following file: