ML Reference
ml::ProcessingTimeLine::TimeLine Class Reference

Timeline for a single thread. More...

#include <mlProcessingTimeLine.h>

Classes

struct  Entry
 Single timeline entry. More...
 

Public Member Functions

 TimeLine (ProcessingTimeLine *owner, const std::string &name)
 
int startEntry (const std::string &info, int processingScope=0)
 Starts an entry and returns its index. More...
 
void stopEntry (int entryIndex)
 Stops the entry at the given index. More...
 
void load (std::ifstream &stream)
 
void save (std::ofstream &stream)
 
void copyFrom (TimeLine &timeline)
 
double getMinimumTime ()
 Searches and returns the earliest time point measured. More...
 
double getMaximumTime ()
 Searches and returns the latest time point measured. More...
 
void clear ()
 
const std::vector< Entry > & getEntries () const
 
const std::string & name () const
 

Detailed Description

Timeline for a single thread.

Definition at line 39 of file mlProcessingTimeLine.h.

Constructor & Destructor Documentation

◆ TimeLine()

ml::ProcessingTimeLine::TimeLine::TimeLine ( ProcessingTimeLine owner,
const std::string &  name 
)
inline

Definition at line 42 of file mlProcessingTimeLine.h.

Member Function Documentation

◆ clear()

void ml::ProcessingTimeLine::TimeLine::clear ( )

◆ copyFrom()

void ml::ProcessingTimeLine::TimeLine::copyFrom ( TimeLine timeline)

◆ getEntries()

const std::vector<Entry>& ml::ProcessingTimeLine::TimeLine::getEntries ( ) const
inline

Definition at line 74 of file mlProcessingTimeLine.h.

◆ getMaximumTime()

double ml::ProcessingTimeLine::TimeLine::getMaximumTime ( )

Searches and returns the latest time point measured.

◆ getMinimumTime()

double ml::ProcessingTimeLine::TimeLine::getMinimumTime ( )

Searches and returns the earliest time point measured.

◆ load()

void ml::ProcessingTimeLine::TimeLine::load ( std::ifstream &  stream)

◆ name()

const std::string& ml::ProcessingTimeLine::TimeLine::name ( ) const
inline

Definition at line 76 of file mlProcessingTimeLine.h.

◆ save()

void ml::ProcessingTimeLine::TimeLine::save ( std::ofstream &  stream)

◆ startEntry()

int ml::ProcessingTimeLine::TimeLine::startEntry ( const std::string &  info,
int  processingScope = 0 
)

Starts an entry and returns its index.

◆ stopEntry()

void ml::ProcessingTimeLine::TimeLine::stopEntry ( int  entryIndex)

Stops the entry at the given index.


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