Hymn to Beauty
C++ 3D Engine
Profiling::Event Class Reference

A profiling event on the timeline. More...

#include <Event.hpp>

Public Member Functions

 Event (const std::string &name)
 Create new event. More...
 
Json::Value ToJson () const
 Save event to json value. More...
 
void FromJson (const Json::Value &value)
 Load event from json value. More...
 

Public Attributes

std::string name
 The name of the event. More...
 
double time
 The time the event occured. More...
 
double duration
 The duration of the event. More...
 
std::list< Eventchildren
 Child events. More...
 
Eventparent = nullptr
 Parent event. More...
 

Detailed Description

A profiling event on the timeline.

Constructor & Destructor Documentation

◆ Event()

Profiling::Event::Event ( const std::string &  name)
explicit

Create new event.

Parameters
nameThe name of the event.

Member Function Documentation

◆ FromJson()

void Profiling::Event::FromJson ( const Json::Value &  value)

Load event from json value.

Parameters
valueThe json value to load from.

◆ ToJson()

Json::Value Profiling::Event::ToJson ( ) const

Save event to json value.

Returns
Json representation of the event.

Member Data Documentation

◆ children

std::list<Event> Profiling::Event::children

Child events.

◆ duration

double Profiling::Event::duration

The duration of the event.

◆ name

std::string Profiling::Event::name

The name of the event.

◆ parent

Event* Profiling::Event::parent = nullptr

Parent event.

◆ time

double Profiling::Event::time

The time the event occured.


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