SG_TRC Namespace Reference


Classes

class  TTCL_APPLI_TRACER
 Class APPLI_TRACER stores every class TTCL_FCT_TRACER created and more profiling datas. More...
class  CL_TRACE_BASE_PARAMS
 This class is used to stored parameters of any type into a string, so it can be easily used by other class. More...
class  CL_TEMP_TRACER
 This class is used to stored temporarly a CL_TRACER object. When you enter in a function you want to trace, create a CL_TEMP_TRACER object. It will automatically create a CL_TRACER object and start the timer. When you will leave hte traced function, the CL_TEMP_TRACER you just created will be destroyed and tell the CL_TRACER to stop the timer and save it. More...
class  CL_VIRTUAL_TRACER
class  CL_TRACER
 This class is used to record the starting and stoping time of a function, with some optional parameters storing. It is linked to a CL_FUNCT_TRC object. More...
class  CL_TRACER_RECORD
 This class is used to store many records(CL_Virtual_Record) of a function tracer for a given set of parameters. More...
class  CL_CLASS_TRACER
class  CL_FUNCT_TRC
class  CL_Virtual_Record
 Virtual class for records manipulation. More...
class  CL_TimerVal
 Class to manipulate system time. More...

Typedefs

typedef CL_TimerVal SG_TRC_Default_Trc_Type
typedef CL_TEMP_TRACER< SG_TRC_Default_Trc_TypeSG_TRC_TEMP_TRACER_BY_TIME
typedef timeval ST_Timeval

Functions

template<typename TracerType>
TTCL_APPLI_TRACER< TracerType > * CreateMainTracer ()
_SG_TRC_DLL_EXPORT int StartRecording (int _FctNumber, CL_TRACE_BASE_PARAMS *_Params)
_SG_TRC_DLL_EXPORT bool XMLSaveBench (const char *Filename)
_SG_TRC_DLL_EXPORT bool XMLLoadBench (const char *Filename)
_SG_TRC_DLL_EXPORT int StartRecordingInt (const int _FctNumber, const char *ParamsName, const int *_intArray, const int _nbr)
_SG_TRC_DLL_EXPORT int StartRecordingChar (const int _FctNumber, const char *ParamsName, const char *_Value)
_SG_TRC_DLL_EXPORT int CreateFunction (const char *_fctName)
_SG_TRC_DLL_EXPORT int StartRecording (const int _FctNumber)
_SG_TRC_DLL_EXPORT void StopRecording (const int _TracerNumber)
_SG_TRC_DLL_EXPORT bool AddParamInt (const int _TracerNumber, const char *_Name, const int _Value)
_SG_TRC_DLL_EXPORT bool AddParamChar (const int _TracerNumber, const char *_Name, const char *_Value)
_SG_TLS_EXPORT int Ygettimeofday (struct timeval *tp)
 This fonction that read time from the system until it started, and put it into tp. Time is in seconde and µsecondes. Ygettimeofday fill tp struct with the time elapsed until the computer started, in seconds and µsecondes.
_SG_TLS_EXPORT void cleartimeval (struct timeval *t1)


Typedef Documentation

typedef class CL_TimerVal SG_TRC::SG_TRC_Default_Trc_Type
 

Definition at line 108 of file config.h.

typedef CL_TEMP_TRACER<SG_TRC_Default_Trc_Type> SG_TRC::SG_TRC_TEMP_TRACER_BY_TIME
 

Definition at line 113 of file config.h.

typedef struct timeval SG_TRC::ST_Timeval
 

Definition at line 110 of file timer.h.


Function Documentation

bool SG_TRC::AddParamChar const int  _TracerNumber,
const char *  _Name,
const char *  _Value
 

Definition at line 464 of file appli.cpp.

References SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapTempTracer.

bool SG_TRC::AddParamInt const int  _TracerNumber,
const char *  _Name,
const int  _Value
 

Definition at line 444 of file appli.cpp.

References SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapTempTracer.

_SG_TLS_EXPORT void SG_TRC::cleartimeval struct timeval *  t1  ) 
 

int SG_TRC::CreateFunction const char *  _fctName  ) 
 

Definition at line 323 of file appli.cpp.

References SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapFunction.

template<typename TracerType>
TTCL_APPLI_TRACER<TracerType>* SG_TRC::CreateMainTracer  ) 
 

Definition at line 277 of file appli.h.

_SG_TRC_DLL_EXPORT int SG_TRC::StartRecording const int  _FctNumber  ) 
 

int SG_TRC::StartRecording int  _FctNumber,
CL_TRACE_BASE_PARAMS *  _Params
 

Definition at line 362 of file appli.cpp.

References SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapFunction, SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapTempTracer, and SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapTracerLastID.

Referenced by StartRecordingChar(), and StartRecordingInt().

int SG_TRC::StartRecordingChar const int  _FctNumber,
const char *  ParamsName,
const char *  _Value
 

Definition at line 392 of file appli.cpp.

References StartRecording().

int SG_TRC::StartRecordingInt const int  _FctNumber,
const char *  ParamsName,
const int *  _intArray,
const int  _nbr
 

Definition at line 387 of file appli.cpp.

References StartRecording().

void SG_TRC::StopRecording const int  _TracerNumber  ) 
 

Definition at line 398 of file appli.cpp.

References SG_TRC::TTCL_APPLI_TRACER< TracerType >::MapTempTracer, and SG_TRC::CL_TimerVal::Run().

_SG_TRC_DLL_EXPORT bool SG_TRC::XMLLoadBench const char *  Filename  ) 
 

Definition at line 302 of file appli.cpp.

_SG_TRC_DLL_EXPORT bool SG_TRC::XMLSaveBench const char *  Filename  ) 
 

Definition at line 281 of file appli.cpp.

int SG_TRC::Ygettimeofday struct timeval *  tp  ) 
 

This fonction that read time from the system until it started, and put it into tp. Time is in seconde and µsecondes. Ygettimeofday fill tp struct with the time elapsed until the computer started, in seconds and µsecondes.

Note:
Should work on different systems like MS Windows, Linux and MacOS.
Parameters:
tp => a pointer to struct timeval that will contain the system time
Returns:
1 when the function completes normally, -1 otherwise

Definition at line 336 of file timer.cpp.

Referenced by SG_TRC::CL_TimerVal::Run().


Generated on Mon Mar 19 23:16:21 2007 for SugoiTracer by  doxygen 1.4.6-NO