sofa::helper::system::thread::TraceProfile Class Reference

#include <debug.h>

Collaboration diagram for sofa::helper::system::thread::TraceProfile:

Collaboration graph
[legend]

Public Member Functions

 TraceProfile (const char *name, int index, int size)
 ~TraceProfile ()
void addTime (int instant, int time)
void begin ()
void end (int instant)

Data Fields

int index
char * name
int size
int * times
int sum
ctime_t beginTime
ctime_t endTime

Detailed Description

Definition at line 67 of file debug.h.


Constructor & Destructor Documentation

sofa::helper::system::thread::TraceProfile::TraceProfile ( const char *  name,
int  index,
int  size 
)

Definition at line 92 of file debug.cpp.

References times.

sofa::helper::system::thread::TraceProfile::~TraceProfile (  ) 

Definition at line 105 of file debug.cpp.

References name.


Member Function Documentation

void sofa::helper::system::thread::TraceProfile::addTime ( int  instant,
int  time 
)

Definition at line 110 of file debug.cpp.

References times.

void sofa::helper::system::thread::TraceProfile::begin (  ) 

Definition at line 115 of file debug.cpp.

References beginTime, and sofa::helper::system::thread::CTime::getTime().

void sofa::helper::system::thread::TraceProfile::end ( int  instant  ) 

Definition at line 120 of file debug.cpp.

References beginTime, endTime, sofa::helper::system::thread::CTime::getTime(), and times.


Field Documentation

Definition at line 76 of file debug.h.

Referenced by begin(), and end().

Definition at line 77 of file debug.h.

Referenced by end().

Definition at line 70 of file debug.h.

Definition at line 71 of file debug.h.

Referenced by ~TraceProfile().

Definition at line 72 of file debug.h.

Definition at line 74 of file debug.h.

Definition at line 73 of file debug.h.

Referenced by addTime(), end(), and TraceProfile().


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

Generated on Sun Nov 23 04:24:20 2008 for Sofa by  doxygen 1.5.7.1