kanzi::GenericResourceProfilingContext::Sampler Class Reference

The context sampler. More...

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

Inheritance diagram for kanzi::GenericResourceProfilingContext::Sampler:
kanzi::ResourceProfilingContextFactory::AbstractSampler

Public Member Functions

 Sampler (ResourceProfilingContextFactory &factory, string_view name, string_view description)
 Constructor. More...
 
- Public Member Functions inherited from kanzi::ResourceProfilingContextFactory::AbstractSampler
 AbstractSampler (ResourceProfilingContextFactory &factory)
 The constructor. More...
 
virtual ~AbstractSampler ()
 Destructor. More...
 
ResourceProfilingContextSharedPtr getContext ()
 Gets the resource profiling context created by this sampler. More...
 

Protected Member Functions

virtual ResourceProfilingContextSharedPtr createContextOverride (TimeStamp entryTimeStamp) KZ_OVERRIDE
 Creates a new resource profiling context. More...
 

Detailed Description

The context sampler.

Constructor & Destructor Documentation

kanzi::GenericResourceProfilingContext::Sampler::Sampler ( ResourceProfilingContextFactory factory,
string_view  name,
string_view  description 
)
explicit

Constructor.

Parameters
factoryThe sampler factory.
nameThe name of the context being created.
descriptionThe description of the new context being created.

Member Function Documentation

virtual ResourceProfilingContextSharedPtr kanzi::GenericResourceProfilingContext::Sampler::createContextOverride ( TimeStamp  entryTimeStamp)
protectedvirtual

Creates a new resource profiling context.

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

Implements kanzi::ResourceProfilingContextFactory::AbstractSampler.


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