profilingTrigger Class Reference

Triggers for starting/stopping code profiling. More...

Public Member Functions

 profilingTrigger (const profilingTrigger &)=delete
 No copy construct. More...
 
void operator= (const profilingTrigger &)=delete
 No copy assignment. More...
 
constexpr profilingTrigger () noexcept
 Default construct, no profiling trigger. More...
 
template<class... StringArgs>
 profilingTrigger (StringArgs &&... description)
 Start profiling section (if profiling is active) with given description. More...
 
 ~profilingTrigger ()
 Destructor, calls stop() More...
 
bool running () const noexcept
 True if the triggered profiling section is active. More...
 
void stop ()
 Stop triggered profiling section. More...
 

Detailed Description

Triggers for starting/stopping code profiling.

Source files

Definition at line 50 of file profilingTrigger.H.

Constructor & Destructor Documentation

◆ profilingTrigger() [1/3]

profilingTrigger ( const profilingTrigger )
delete

No copy construct.

◆ profilingTrigger() [2/3]

constexpr profilingTrigger ( )
inlinenoexcept

Default construct, no profiling trigger.

Definition at line 124 of file profilingTrigger.H.

◆ profilingTrigger() [3/3]

profilingTrigger ( StringArgs &&...  description)
inlineexplicit

Start profiling section (if profiling is active) with given description.

The description is generated by string concatenation of the parameters. Descriptions beginning with 'application::' are reserved for internal use.

Definition at line 136 of file profilingTrigger.H.

◆ ~profilingTrigger()

Destructor, calls stop()

Definition at line 169 of file profilingTrigger.C.

Member Function Documentation

◆ operator=()

void operator= ( const profilingTrigger )
delete

No copy assignment.

◆ running()

bool running ( ) const
noexcept

True if the triggered profiling section is active.

Definition at line 177 of file profilingTrigger.C.

◆ stop()

void stop ( )

Stop triggered profiling section.

Definition at line 183 of file profilingTrigger.C.

References profiling::unstack().

Here is the call graph for this function:

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