MeVisLab Toolbox Reference
|
Stores a processing time line 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) |
copy data from given timeline | |
TimeLine * | addTimeLine (const std::string &name) |
adds a time line with given name, ownership stays with ProcessingTimeLine | |
void | removeTimeLine (TimeLine *timeLine) |
removes the given time line (and deletes it) | |
int | getNumTimeLines () const |
get the number of time lines | |
TimeLine * | getTimeLine (int i) const |
get time line with given index | |
void | resetRunningTime () |
reset the running time (which affects getRunningTime()) | |
void | resetTimeLines () |
reset the time lines (without deleting them) | |
double | getRunningTime () |
get the current running time in seconds | |
double | getMaximumTime () |
searches and returns the highest time point that was measured over all time lines | |
double | getMinimumTime () |
searches and returns the smallest time point that was measured over all time lines | |
void | save (const std::string &fileName) |
save timeline to disk | |
void | load (const std::string &fileName) |
read timeline from disk | |
void | clear () |
clears/removes the timelines | |
Stores a processing time line for multiple threads.
Definition at line 29 of file mlProcessingTimeLine.h.
ml::ProcessingTimeLine::ProcessingTimeLine | ( | ) |
ml::ProcessingTimeLine::~ProcessingTimeLine | ( | ) |
adds a time line with given name, ownership stays with ProcessingTimeLine
void ml::ProcessingTimeLine::clear | ( | ) |
clears/removes the timelines
void ml::ProcessingTimeLine::copyFrom | ( | ProcessingTimeLine & | timeline | ) |
copy data from given timeline
double ml::ProcessingTimeLine::getMaximumTime | ( | ) |
searches and returns the highest time point that was measured over all time lines
double ml::ProcessingTimeLine::getMinimumTime | ( | ) |
searches and returns the smallest time point that was measured over all time lines
|
inline |
get the number of time lines
Definition at line 91 of file mlProcessingTimeLine.h.
double ml::ProcessingTimeLine::getRunningTime | ( | ) |
get the current running time in seconds
get time line with given index
Definition at line 94 of file mlProcessingTimeLine.h.
References mlrange_cast().
removes the given time line (and deletes it)
|
inline |
reset the running time (which affects getRunningTime())
Definition at line 97 of file mlProcessingTimeLine.h.
void ml::ProcessingTimeLine::resetTimeLines | ( | ) |
reset the time lines (without deleting them)