The named interval profiler data sample. More...
#include <kanzi/core/profiling/named_interval_profiler.hpp>
Public Member Functions | |
NamedIntervalProfilerSampleData (TimePoint startTimePoint, chrono::nanoseconds duration, string scopeName, string objectName) | |
Constructor. | |
Public Attributes | |
chrono::nanoseconds | m_duration |
The duration of the interval. | |
string | m_objectName |
The name of the object that the code block was operating on. | |
string | m_scopeName |
The name of the measured code block. | |
TimePoint | m_startTimePoint |
The point in time when interval measurement started. | |
The named interval profiler data sample.
Use Profiling macros to profile codepath execution time.
This structure keeps interval measurement data that is produced by NamedIntervalProfiler and NamedIntervalProfilerSampler. The measurement data contains the time and duration of an execution of a code block, an string identifier to name the code block, and a string identifier to name the object that the code block was operating on. For example when the block name is "NodeAttach" and the object is "Screen", the duration tells how long it took to attach the Screen node.
|
inlineexplicit |
Constructor.
startTimePoint | The point in time when measurement started. |
duration | The interval duration. |
scopeName | The name of the measure scope. |
objectName | The name of the object that the scope is operating on. |
TimePoint kanzi::NamedIntervalProfilerSampleData::m_startTimePoint |
The point in time when interval measurement started.
chrono::nanoseconds kanzi::NamedIntervalProfilerSampleData::m_duration |
The duration of the interval.
string kanzi::NamedIntervalProfilerSampleData::m_scopeName |
The name of the measured code block.
string kanzi::NamedIntervalProfilerSampleData::m_objectName |
The name of the object that the code block was operating on.