1 #ifndef __TRACE_MEMORY_H__
2 #define __TRACE_MEMORY_H__
6 #include "trace-common.h"
9 /** A representant of a memory operation */
12 friend class TraceMemory
;
22 void set(int t
, void *w
, int s
) {
28 void setStack(int ss
, void **s
) {
30 memcpy(this+1, s
, ss
*sizeof(void*));
35 class to trace all memory related events. Currently works only in conjunction
36 with "-memory charmdebug".
38 class TraceMemory
: public Trace
{
47 void checkFlush(int add
);
50 TraceMemory(char **argv
);
54 void malloc(void *where
, int size
, void **stack
, int stackSize
);
55 void free(void *where
, int size
);