22 Json::Value
ToJson()
const;
28 void FromJson(
const Json::Value& value);
A profiling event on the timeline.
Definition: Event.hpp:10
double duration
The duration of the event.
Definition: Event.hpp:37
void FromJson(const Json::Value &value)
Load event from json value.
Definition: Event.cpp:26
double time
The time the event occured.
Definition: Event.hpp:34
Event(const std::string &name)
Create new event.
Definition: Event.cpp:5
Event * parent
Parent event.
Definition: Event.hpp:43
std::list< Event > children
Child events.
Definition: Event.hpp:40
std::string name
The name of the event.
Definition: Event.hpp:31
Json::Value ToJson() const
Save event to json value.
Definition: Event.cpp:9