Hermes
hermes::profiler::Profiler::Block Class Reference

Holds a labeled profiler block with start/end time points. More...

Public Member Functions

 Block (u32 desc_id)
 Value constructor. More...
 
u64 begin () const noexcept
 block start time point (in ticks) More...
 
u64 end () const noexcept
 block end time point (in ticks) More...
 
u64 duration () const noexcept
 block duration (in ticks) More...
 

Public Attributes

u32 descriptor_id {0}
 block descriptor identifier
 
u32 level {0}
 profile stack level
 

Detailed Description

Holds a labeled profiler block with start/end time points.

Constructor & Destructor Documentation

◆ Block()

hermes::profiler::Profiler::Block::Block ( u32  desc_id)
explicit

Value constructor.

Parameters
desc_idblock descriptor id (label)

Member Function Documentation

◆ begin()

u64 hermes::profiler::Profiler::Block::begin ( ) const
inlinenoexcept

block start time point (in ticks)

Returns

◆ duration()

u64 hermes::profiler::Profiler::Block::duration ( ) const
inlinenoexcept

block duration (in ticks)

Returns

◆ end()

u64 hermes::profiler::Profiler::Block::end ( ) const
inlinenoexcept

block end time point (in ticks)

Returns

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