Arcane  4.1.12.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.
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.
ITimerMngtimerMng () 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.
IServiceInfoserviceInfo () const override
 Access to service information. See IServiceInfo for details.
IBaseserviceParent () const override
 Access to the base interface of main Arcane objects.
IServiceserviceInterface () 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.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () 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 87 of file ProfPerformanceService.cc.

◆ ~ProfPerformanceService()

Arcane::ProfPerformanceService::~ProfPerformanceService ( )
override

Definition at line 96 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 288 of file ProfPerformanceService.cc.

◆ getInfos()

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

Implements Arcane::IProfilingService.

Definition at line 298 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 214 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.

◆ 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 278 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 307 of file ProfPerformanceService.cc.

◆ startProfiling()

void Arcane::ProfPerformanceService::startProfiling ( )
overridevirtual

Starts profiling.

Implements Arcane::IProfilingService.

Definition at line 230 of file ProfPerformanceService.cc.

◆ stopProfiling()

void Arcane::ProfPerformanceService::stopProfiling ( )
overridevirtual

Stops profiling.

Implements Arcane::IProfilingService.

Definition at line 256 of file ProfPerformanceService.cc.

◆ switchEvent()

void Arcane::ProfPerformanceService::switchEvent ( )
overridevirtual

Implements Arcane::IProfilingService.

Definition at line 248 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 70 of file ProfPerformanceService.cc.

Member Data Documentation

◆ m_is_initialized

bool Arcane::ProfPerformanceService::m_is_initialized = false

Definition at line 74 of file ProfPerformanceService.cc.


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