Kanzi  3.9.7
Kanzi Engine API
kanzi::ResourceProfilingAcquireContext Class Reference

The profiling context of resource acquirement. More...

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

Inheritance diagram for kanzi::ResourceProfilingAcquireContext:
[legend]

Classes

class  Sampler
 The context sampler. More...
 

Protected Member Functions

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

Additional Inherited Members

- Public Types inherited from kanzi::ResourceProfilingContext
typedef chrono::nanoseconds Duration
 The duration type. More...
 
typedef vector< ResourceProfilingContextSharedPtrResourceProfilingContextContainer
 The resource profiling context container. More...
 
typedef Duration TimeStamp
 The timestamp. More...
 
- Public Member Functions inherited from kanzi::ResourceProfilingContext
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...
 
TimeStamp getEntryTimeStamp () const
 Gets the entry timestamp of the context. More...
 
uint64_t getID () const
 Gets the unique identifier of the context. More...
 
void recordExitTimeStamp ()
 Records exit timestamp on the context. More...
 
virtual ~ResourceProfilingContext ()
 Destructor. More...
 
- Static Public Member Functions inherited from kanzi::ResourceProfilingContext
static TimePoint getCurrentTimePoint ()
 Gets the current timepoint. More...
 
static TimeStamp getCurrentTimeStamp ()
 Gets the current timestamp. More...
 
- Protected Attributes inherited from kanzi::NamedResourceProfilingContext
string m_name
 The name of the context. More...
 

Detailed Description

The profiling context of resource acquirement.

Constructor & Destructor Documentation

kanzi::ResourceProfilingAcquireContext::ResourceProfilingAcquireContext ( TimeStamp  entryTimeStamp,
string &&  url,
bool  async 
)
explicitprotected

Constructor.

Parameters
entryTimeStampThe timestamp evaluated at entry to the scope of the resource profiling context.
urlThe URL of the resource being acquired.
asyncThe asynchronous resource loading flag.
kanzi::ResourceProfilingAcquireContext::ResourceProfilingAcquireContext ( TimeStamp  entryTimeStamp,
string_view  url,
bool  async 
)
explicitprotected

Constructor.

Parameters
entryTimeStampThe timestamp evaluated at entry to the scope of the resource profiling context.
urlThe URL of the resource being acquired.
asyncThe asynchronous resource loading flag.

Member Function Documentation

void kanzi::ResourceProfilingAcquireContext::getAttributesOverride ( ResourceProfilingAttributes attributes) const
overrideprotectedvirtual

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

For more details on context attributes, see getAttributes().

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

Reimplemented from kanzi::NamedResourceProfilingContext.


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