#include <mem-trace.h>
Collaboration diagram for MemTrace:

Public Member Functions | |
| MemTrace () | |
| void | diff (char *prompt) |
Private Attributes | |
| MemInfo | start_ |
| MemInfo | now_ |
|
|
Definition at line 89 of file mem-trace.h. References MemInfo::checkpoint(), and start_.
00089 {
00090 start_.checkpoint();
00091 }
|
Here is the call graph for this function:

|
|
Definition at line 92 of file mem-trace.h. References MemInfo::checkpoint(), fDIFF, normalize, now_, start_, and MemInfo::stime_. Referenced by Scheduler::command().
00092 {
00093 now_.checkpoint();
00094 fprintf (stdout, "%s: utime/stime: %ld %ld \tstack/heap: %ld %ld\n",
00095 prompt,
00096 normalize(now_.utime_) - normalize(start_.utime_),
00097 normalize(now_.stime_) - normalize(start_.stime_),
00098 fDIFF(stack_), fDIFF(heap_));
00099 start_.checkpoint();
00100 }
|
Here is the call graph for this function:

|
|
Definition at line 86 of file mem-trace.h. Referenced by diff(). |
|
|
Definition at line 86 of file mem-trace.h. Referenced by diff(), and MemTrace(). |
1.3.3