#include <utils.h>
Public Member Functions | |
MessageTracer () | |
~MessageTracer () | |
void | created (MessageId *m) |
void | cloned (MessageId *m) |
void | assigned (MessageId *m) |
void | deleted (MessageId *m) |
Static Public Member Functions | |
static MessageTracer * | instance () |
Protected Member Functions | |
void | open () |
Protected Attributes | |
FILE * | f |
MessageId * | lastId |
Static Protected Attributes | |
static MessageTracer | trc |
|
|
|
00052 {
00053 if (f)
00054 fclose(f);
00055 }
|
|
00078 { 00079 if (!f) open(); 00080 fprintf(f,"A I:%d T:%d P:%d E:%ld %s\n", m->id, m->treeId, m->parentId, 00081 simulation.eventNumber(), simulation.contextModule()->fullPath().c_str()); 00082 if (m==lastId) lastId = NULL; 00083 }
|
|
00071 { 00072 if (!f) open(); 00073 fprintf(f,"L I:%d T:%d P:%d E:%ld %s\n", m->id, m->treeId, m->parentId, 00074 simulation.eventNumber(), simulation.contextModule()->fullPath().c_str()); 00075 }
|
|
00063 { 00064 if (!f) open(); 00065 if (lastId) fprintf(f,"C I:%d T:%d P:%d E:%ld %s\n", lastId->id, lastId->treeId, lastId->parentId, 00066 simulation.eventNumber(), simulation.contextModule()->fullPath().c_str()); 00067 lastId = m; 00068 }
|
|
00086 { 00087 fprintf(f,"D I:%d T:%d P:%d E:%ld %s\n", m->id, m->treeId, m->parentId, 00088 simulation.eventNumber(), simulation.contextModule()->fullPath().c_str()); 00089 }
|
|
00049 {return &trc;}
|
|
00058 { 00059 f = fopen("msgtrace.out","w"); 00060 }
|
|
|
|
|
|
|