|
Hymn to Beauty
C++ 3D Engine
|
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< Event > | children |
| Child events. More... | |
| Event * | parent = nullptr |
| Parent event. More... | |
A profiling event on the timeline.
|
explicit |
Create new event.
| name | The name of the event. |
| void Profiling::Event::FromJson | ( | const Json::Value & | value | ) |
Load event from json value.
| value | The json value to load from. |
| Json::Value Profiling::Event::ToJson | ( | ) | const |
Save event to json value.
| std::list<Event> Profiling::Event::children |
Child events.
| double Profiling::Event::duration |
The duration of the event.
| std::string Profiling::Event::name |
The name of the event.
| Event* Profiling::Event::parent = nullptr |
Parent event.
| double Profiling::Event::time |
The time the event occured.