kanzi::NamedResourceProfilingContext Class Reference

Named resource profiling context. More...

#include <kanzi/core.ui/resource/named_resource_profiling_context.hpp>

Inheritance diagram for kanzi::NamedResourceProfilingContext:
kanzi::ResourceProfilingContext kanzi::GenericResourceProfilingContext kanzi::ResourceProfilingAcquireContext kanzi::ResourceProfilingDeployContext kanzi::ResourceProfilingLoadContext kanzi::ResourceProfilingMainLoopContext

Classes

class  Sampler
 The context sampler. More...
 

Protected Member Functions

 NamedResourceProfilingContext (TimeStamp entryTimeStamp, KZ_RV_REF(string) name)
 Constructor. More...
 
 NamedResourceProfilingContext (TimeStamp entryTimeStamp, string_view name)
 Constructor. More...
 
virtual void getAttributesOverride (ResourceProfilingAttributes &attributes) const KZ_OVERRIDE
 Gets the attributes of the context defined in the derived class. More...
 
- Protected Member Functions inherited from kanzi::ResourceProfilingContext
 ResourceProfilingContext (TimeStamp entryTimeStamp)
 Constructor. More...
 
Duration getDependenciesDuration () const
 Gets the total duration of all dependency contexts. More...
 
virtual Duration getDurationOverride () const
 Gets the duration of the context. More...
 

Protected Attributes

string m_name
 The name of the context. More...
 

Additional Inherited Members

- Public Types inherited from kanzi::ResourceProfilingContext
typedef chrono::nanoseconds Duration
 The duration type. More...
 
typedef chrono::high_resolution_clock::time_point TimePoint
 The timepoint type. More...
 
typedef Duration TimeStamp
 The timestamp. More...
 
typedef vector< ResourceProfilingContextSharedPtrResourceProfilingContextContainer
 The resource profiling context container. More...
 
- Public Member Functions inherited from kanzi::ResourceProfilingContext
virtual ~ResourceProfilingContext ()
 Destructor. More...
 
void addDependencyContext (ResourceProfilingContextSharedPtr context)
 Adds a dependency context. More...
 
void getAttributes (ResourceProfilingAttributes &attributes) const
 Retrieves the attributes of the context. More...
 
const ResourceProfilingContextContainergetDependencyContexts () const
 Gets dependency contexts container. More...
 
uint64_t getID () const
 Gets the unique identifier of the context. More...
 
TimeStamp getEntryTimeStamp () const
 Gets the entry timestamp of the context. More...
 
- Static Public Member Functions inherited from kanzi::ResourceProfilingContext
static TimeStamp getCurrentTimeStamp ()
 Gets the current timestamp. More...
 
static TimePoint getCurrentTimePoint ()
 Gets the current timepoint. More...
 

Detailed Description

Named resource profiling context.

Constructor & Destructor Documentation

kanzi::NamedResourceProfilingContext::NamedResourceProfilingContext ( TimeStamp  entryTimeStamp,
KZ_RV_REF(string)  name 
)
explicitprotected

Constructor.

Parameters
entryTimeStampThe timestamp evaluated at entry to the scope of the resource profiling context.
profiledResourceThe profiled resource.
kanzi::NamedResourceProfilingContext::NamedResourceProfilingContext ( TimeStamp  entryTimeStamp,
string_view  name 
)
explicitprotected

Constructor.

Parameters
entryTimeStampThe timestamp evaluated at entry to the scope of the resource profiling context.
profiledResourceThe profiled resource.

Member Function Documentation

virtual void kanzi::NamedResourceProfilingContext::getAttributesOverride ( ResourceProfilingAttributes attributes) const
protectedvirtual

Gets the attributes of the context defined in the derived class.

Parameters
attributesThe attributes object to fill out with the attributes of the context.
See also
getAttributes()

Reimplemented from kanzi::ResourceProfilingContext.

Reimplemented in kanzi::ResourceProfilingAcquireContext, kanzi::GenericResourceProfilingContext, kanzi::ResourceProfilingDeployContext, kanzi::ResourceProfilingLoadContext, and kanzi::ResourceProfilingMainLoopContext.

Member Data Documentation

string kanzi::NamedResourceProfilingContext::m_name
protected

The name of the context.


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