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. More... | |
Public Attributes | |
chrono::nanoseconds | m_duration |
The duration of the interval. More... | |
string | m_objectName |
The name of the object that the code block was operating on. More... | |
string | m_scopeName |
The name of the measured code block. More... | |
TimePoint | m_startTimePoint |
The point in time when interval measurement started. More... | |
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.