MeVisLab Toolbox Reference
|
Stores a processing timeline for multiple threads. More...
#include <mlProcessingTimeLine.h>
Classes | |
class | TimeLine |
Timeline for a single thread. More... | |
Public Member Functions | |
ProcessingTimeLine () | |
~ProcessingTimeLine () | |
void | copyFrom (ProcessingTimeLine &timeline) |
Copies data from given timeline. More... | |
TimeLine * | addTimeLine (const std::string &name) |
Adds a timeline with the given name . The ownership stays with ProcessingTimeLine. More... | |
void | removeTimeLine (TimeLine *timeLine) |
Removes the given timeline and deletes it. More... | |
int | getNumTimeLines () const |
Returns the number of timelines. More... | |
TimeLine * | getTimeLine (int i) const |
Returns the timeline with given index i . More... | |
void | resetRunningTime () |
Resets the running time, which affects getRunningTime(). More... | |
void | resetTimeLines () |
Resets the timelines without deleting them. More... | |
double | getRunningTime () |
Returns the current running time in seconds. More... | |
double | getMaximumTime () |
Searches and returns the latest time point measured over all timelines. More... | |
double | getMinimumTime () |
Searches and returns the earliest time point measured over all timelines. More... | |
void | save (const std::string &fileName) |
Saves timeline to disk. More... | |
void | load (const std::string &fileName) |
Reads timeline from disk. More... | |
void | clear () |
Clears/removes the timelines. More... | |
Stores a processing timeline for multiple threads.
Definition at line 29 of file mlProcessingTimeLine.h.
ml::ProcessingTimeLine::ProcessingTimeLine | ( | ) |
ml::ProcessingTimeLine::~ProcessingTimeLine | ( | ) |
TimeLine* ml::ProcessingTimeLine::addTimeLine | ( | const std::string & | name | ) |
Adds a timeline with the given name
. The ownership stays with ProcessingTimeLine.
void ml::ProcessingTimeLine::clear | ( | ) |
Clears/removes the timelines.
void ml::ProcessingTimeLine::copyFrom | ( | ProcessingTimeLine & | timeline | ) |
Copies data from given timeline.
double ml::ProcessingTimeLine::getMaximumTime | ( | ) |
Searches and returns the latest time point measured over all timelines.
double ml::ProcessingTimeLine::getMinimumTime | ( | ) |
Searches and returns the earliest time point measured over all timelines.
|
inline |
Returns the number of timelines.
Definition at line 91 of file mlProcessingTimeLine.h.
double ml::ProcessingTimeLine::getRunningTime | ( | ) |
Returns the current running time in seconds.
|
inline |
Returns the timeline with given index i
.
Definition at line 94 of file mlProcessingTimeLine.h.
void ml::ProcessingTimeLine::load | ( | const std::string & | fileName | ) |
Reads timeline from disk.
void ml::ProcessingTimeLine::removeTimeLine | ( | TimeLine * | timeLine | ) |
Removes the given timeline
and deletes it.
|
inline |
Resets the running time, which affects getRunningTime().
Definition at line 97 of file mlProcessingTimeLine.h.
void ml::ProcessingTimeLine::resetTimeLines | ( | ) |
Resets the timelines without deleting them.
void ml::ProcessingTimeLine::save | ( | const std::string & | fileName | ) |
Saves timeline to disk.