SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Profiler::Marker Class Reference

Public Member Functions

 Marker (double start, size_t layer=0)
 
 Marker (const Marker &ref)
 
double getStart () const
 Returns the start time of this event marker.
 
double getEnd () const
 Returns the end time of this event marker.
 
double getDuration () const
 Returns the duration of this event.
 
size_t getLayer () const
 
void clear ()
 Called when an entry in the cyclic buffer is reused.
 
void setStart (double start, size_t layer=0)
 Sets start time and layer for this event.
 
void setEnd (double end)
 Sets the end time of this event.
 

Private Attributes

double m_start
 An event that is started (pushed) stores the start time in this variable.
 
double m_duration
 Duration of the event in this frame (accumulated if this event should be recorded more than once).
 
size_t m_layer
 Distance of marker from root (for nested events), used to adjust vertical height when drawing.
 

Member Function Documentation

◆ clear()

void Profiler::Marker::clear ( )
inline

Called when an entry in the cyclic buffer is reused.

Makes sure that time for a new event can be accumulated.


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