Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ProfilingSentryWithInitialize Class Reference

Class allowing automatic start and stop of a service. More...

#include <arcane/utils/IProfilingService.h>

Collaboration diagram for Arcane::ProfilingSentryWithInitialize:

Public Member Functions

 ProfilingSentryWithInitialize (IProfilingService *s)
 Constructs an instance associated with the service s.
IProfilingServiceservice ()
void setPrintAtEnd (bool v)
 Indicates if results are printed at the end of profiling.

Private Attributes

IProfilingServicem_service = nullptr
bool m_print_at_end = false

Detailed Description

Class allowing automatic start and stop of a service.

The service is initialized if necessary.

Definition at line 135 of file IProfilingService.h.

Constructor & Destructor Documentation

◆ ProfilingSentryWithInitialize()

Arcane::ProfilingSentryWithInitialize::ProfilingSentryWithInitialize ( IProfilingService * s)
inlineexplicit

Constructs an instance associated with the service s.

If s is null, the instance does nothing.

Definition at line 144 of file IProfilingService.h.

◆ ~ProfilingSentryWithInitialize()

Arcane::ProfilingSentryWithInitialize::~ProfilingSentryWithInitialize ( )
inline

Definition at line 154 of file IProfilingService.h.

Member Function Documentation

◆ service()

IProfilingService * Arcane::ProfilingSentryWithInitialize::service ( )
inline

Definition at line 165 of file IProfilingService.h.

◆ setPrintAtEnd()

void Arcane::ProfilingSentryWithInitialize::setPrintAtEnd ( bool v)
inline

Indicates if results are printed at the end of profiling.

Definition at line 167 of file IProfilingService.h.

Referenced by Arcane::CodeService::initCase(), and Arcane::SubDomain::readOrReloadMeshes().

Here is the caller graph for this function:

Member Data Documentation

◆ m_print_at_end

bool Arcane::ProfilingSentryWithInitialize::m_print_at_end = false
private

Definition at line 172 of file IProfilingService.h.

◆ m_service

IProfilingService* Arcane::ProfilingSentryWithInitialize::m_service = nullptr
private

Definition at line 171 of file IProfilingService.h.


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