kanzi::FunctionProfilerInstance Class Reference

Utility class that is used to hold a function profiler object, register it to profiler and manage the lifetime of it. More...

#include <kanzi/core/profiling/function_profiler_source.hpp>

Inheritance diagram for kanzi::FunctionProfilerInstance:
kanzi::FunctionWrapper

Public Member Functions

 FunctionProfilerInstance (Profiler &profiler, string_view name, string_view category, size_t sampleBufferSize)
 Constructor. More...
 
FunctionProfilerSourceget ()
 Provides access to the function profiling source that is managed by this object. More...
 

Detailed Description

Utility class that is used to hold a function profiler object, register it to profiler and manage the lifetime of it.

Constructor & Destructor Documentation

kanzi::FunctionProfilerInstance::FunctionProfilerInstance ( Profiler profiler,
string_view  name,
string_view  category,
size_t  sampleBufferSize 
)
explicit

Constructor.

Parameters
profilerThe profiler instance this function profiler is connected in to.
nameName of the function that is being profiled.
categoryCategory of the function that is being profiled.
sampleBufferSizeSize of the sample ring buffer that is used to store more detailed per-invocation data.

Member Function Documentation

FunctionProfilerSource& kanzi::FunctionProfilerInstance::get ( )
inline

Provides access to the function profiling source that is managed by this object.


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