#include <sys/time.h>#include <sys/resource.h>#include <unistd.h>#include <stdarg.h>#include <string.h>#include <stack/stack.h>#include <dbLkList/dbLkList.h>Include dependency graph for tracer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | _TrcAttribute_ |
| This is a state attribute. More... | |
| struct | _TrcState_ |
| This is a state. More... | |
| struct | _TrcData_ |
| This holds the tracing data. More... | |
Defines | |
| #define | MAXSAVEDSTATES 1000 |
| #define | SEPARATOR " " |
Typedefs | |
| typedef _TrcAttribute_ | TrcAttribute |
| This is a state attribute. | |
| typedef _TrcState_ | TrcState |
| This is a state. | |
| typedef _TrcData_ | TrcData |
| This holds the tracing data. | |
Functions | |
| TrcData * | trcCreateData (char *filename) |
| Starts the tracing data, zeroing everything. | |
| void | trcEnterState (TrcData *trc, char *types,...) |
| Enters a specific state, setting the values of the attributes. | |
| void | trcDestroyData (TrcData **trcPointer) |
| Destroys the Tracing data, NULLing the pointer. | |
| void | trcLeaveState (TrcData *trc,...) |
| leaves the current state, computing times for it. | |
| void | trcFlush (TrcData *trc) |
| Saves all tracing data to a file, appending time there. | |
| int * | trcIArrayToTrc (int size, int *array) |
| void | trcResetCurrentState (TrcData *trc) |
| Reset the initial time of the current state, as if trcEnterState was called again ( but no other state is created ). | |
|
|
|
|
|
Definition at line 14 of file tracer.h. Referenced by trcFlush(). |
|
|
This is a state attribute.
|
|
|
This holds the tracing data.
|
|
|
This is a state.
|
|
|
Starts the tracing data, zeroing everything.
Definition at line 3 of file tracer.c. References _TrcData_::currentState, _TrcData_::firstFlush, _TrcData_::initTime, listCreate(), _TrcData_::numSavedStates, _TrcData_::numStackedStates, _TrcData_::savedStates, _TrcData_::stackedStates, stCreate(), and _TrcData_::tracefile. Referenced by createFilterData(). Here is the call graph for this function: ![]() |
|
|
Destroys the Tracing data, NULLing the pointer.
Definition at line 24 of file tracer.c. References trcFlush(), and trcLeaveState(). Referenced by dsExit(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Enters a specific state, setting the values of the attributes.
Definition at line 53 of file tracer.c. References _TrcState_::numAttributes, and _TrcState_::numPosAttributes. Referenced by dsCloseOutputPort(), dsCreateTask(), dsEndTask(), dsExit(), dsGetCurrentTask(), dsGetInputPortByName(), dsGetLocalInstances(), dsGetMachineMemory(), dsGetMyRank(), dsGetNumReaders(), dsGetNumWriters(), dsGetOutputPortByName(), dsGetTotalInstances(), dsInitPack(), dsInitReceive(), dsPackData(), dsProbe(), dsReadBuffer(), dsReadNonBlockingBuffer(), dsSetCurrentTask(), dsUnpackData(), dsWriteBuffer(), and dsWritePackedBuffer(). |
|
|
Saves all tracing data to a file, appending time there.
Definition at line 254 of file tracer.c. References _TrcData_::firstFlush, _TrcData_::initTime, listRemoveHead(), _TrcData_::numSavedStates, _TrcData_::savedStates, SEPARATOR, and _TrcData_::tracefile. Referenced by trcDestroyData(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
|
|
||||||||||||
|
leaves the current state, computing times for it. The current state is set to the Top of the stack, which is poped
Definition at line 130 of file tracer.c. References _TrcState_::attributes, _TrcData_::currentState, _TrcState_::endRusage, _TrcState_::endTime, _TrcState_::numAttributes, _TrcState_::numPosAttributes, _TrcData_::numStackedStates, _TrcData_::stackedStates, stPop(), _TrcAttribute_::type, and _TrcAttribute_::value. Referenced by dsCloseOutputPort(), dsCreateTask(), dsEndTask(), dsExit(), dsGetCurrentTask(), dsGetInputPortByName(), dsGetLocalInstances(), dsGetMachineMemory(), dsGetMyRank(), dsGetNumReaders(), dsGetNumWriters(), dsGetOutputPortByName(), dsGetTotalInstances(), dsInitPack(), dsInitReceive(), dsPackData(), dsProbe(), dsReadBuffer(), dsReadNonBlockingBuffer(), dsSetCurrentTask(), dsUnpackData(), dsWriteBuffer(), dsWritePackedBuffer(), and trcDestroyData(). Here is the call graph for this function: ![]() |
|
|
Reset the initial time of the current state, as if trcEnterState was called again ( but no other state is created ).
Definition at line 125 of file tracer.c. References _TrcData_::currentState, and _TrcState_::initTime. Referenced by dsReadBuffer(). |
1.4.6