Classes | |
| struct | mem::LogStopper |
| struct | mem::PointPrinter |
| struct | mem::MapPrinter |
Functions | |
| ConstStackArray | getStack (const Record &r) |
| StackArray | getStack (Record &nc) |
| std::ostream & | operator<< (std::ostream &ost, const Record &cr) |
| unsigned long | getAddress (const Record &r) |
| void | stop_the_logger () |
Variables | |
| LogStopper | log_stopper |
| MapPrinter | map_printer |
|
|
Definition at line 78 of file MemRecords.cpp. References MuELoss::a. 00079 {
00080 Record& nc = const_cast<Record&>(r);
00081 switch(nc.type())
00082 {
00083 case AllocID:
00084 case CallocID:
00085 case ReallocID:
00086 {
00087 AllocRecord a(nc);
00088 return a.address();
00089 }
00090 case FreeID:
00091 {
00092 FreeRecord b(nc);
00093 return b.address();
00094 }
00095 }
00096 return 0;
00097 }
|
|
|
Definition at line 31 of file MemRecords.cpp. References MuELoss::a. Referenced by LeakChecker::changeStack(). 00032 {
00033 switch(nc.type())
00034 {
00035 case AllocID:
00036 case CallocID:
00037 case ReallocID:
00038 {
00039 AllocRecord a(nc);
00040 return StackArray(a.stackBegin(),a.stackEnd());
00041 }
00042 case FreeID:
00043 {
00044 FreeRecord b(nc);
00045 return StackArray(b.stackBegin(),b.stackEnd());
00046 }
00047 }
00048 return StackArray(0,0);
00049 }
|
|
|
Definition at line 10 of file MemRecords.cpp. References MuELoss::a. 00011 {
00012 Record& nc = const_cast<Record&>(r);
00013 switch(nc.type())
00014 {
00015 case AllocID:
00016 case CallocID:
00017 case ReallocID:
00018 {
00019 AllocRecord a(nc);
00020 return ConstStackArray(a.stackBegin(),a.stackEnd());
00021 }
00022 case FreeID:
00023 {
00024 FreeRecord b(nc);
00025 return ConstStackArray(b.stackBegin(),b.stackEnd());
00026 }
00027 }
00028 return ConstStackArray(0,0);
00029 }
|
|
||||||||||||
|
Definition at line 51 of file MemRecords.cpp. References MuELoss::a. 00052 {
00053 Record& r = const_cast<Record&>(cr);
00054
00055 switch(r.type())
00056 {
00057 case AllocID:
00058 case CallocID:
00059 case ReallocID:
00060 {
00061 AllocRecord a(r);
00062 ost << a;
00063 break;
00064 }
00065 case FreeID:
00066 {
00067 FreeRecord f(r);
00068 ost << f;
00069 break;
00070 }
00071 default:
00072 //ost << "u unknown record type encountered " << r.type();
00073 break;
00074 }
00075 return ost;
00076 }
|
|
|
Definition at line 73 of file MemLogger.cpp. References debug_print. Referenced by mem::LogStopper::LogStopper(). 00074 {
00075 debug_print("Stop Memlogger\n");
00076 MemLogger::instance()->stop();
00077 }
|
|
|
Definition at line 71 of file MemLogger.cpp. |
|
|
Definition at line 130 of file MemLogger.cpp. |
1.3.9.1