Kanzi  3.9.6
Kanzi Engine API
kanzi::NamedResourceProfilingContext::Sampler Class Reference

The context sampler. More...

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

Inheritance diagram for kanzi::NamedResourceProfilingContext::Sampler:
[legend]

Public Member Functions

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

Protected Member Functions

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

Detailed Description

The context sampler.

Constructor & Destructor Documentation

◆ Sampler()

kanzi::NamedResourceProfilingContext::Sampler::Sampler ( ResourceProfilingContextFactory factory,
string_view  name 
)
explicit

Constructor.

Parameters
factoryThe sampler factory.
nameThe name of the context.

Member Function Documentation

◆ createContextOverride()

ResourceProfilingContextSharedPtr kanzi::NamedResourceProfilingContext::Sampler::createContextOverride ( TimeStamp  entryTimeStamp)
overrideprotectedvirtual

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: