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

A timeline. More...

#include <Timeline.hpp>

Public Member Functions

ThreadAddThread (const std::string &name)
 Add a thread to the timeline. More...
 
Json::Value ToJson () const
 Save timeline to json value. More...
 
void FromJson (const Json::Value &value)
 Load timeline from json value. More...
 

Public Attributes

std::list< Threadthreads
 Threads. More...
 

Detailed Description

A timeline.

Member Function Documentation

◆ AddThread()

Thread * Profiling::Timeline::AddThread ( const std::string &  name)

Add a thread to the timeline.

Parameters
nameThe name of the thread to add.
Returns
The thread.

◆ FromJson()

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

Load timeline from json value.

Parameters
valueThe json value to load from.

◆ ToJson()

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

Save timeline to json value.

Returns
Json representation of the timeline.

Member Data Documentation

◆ threads

std::list<Thread> Profiling::Timeline::threads

Threads.


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