Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

MemTrace Class Reference

#include <mem-trace.h>

Collaboration diagram for MemTrace:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MemTrace ()
void diff (char *prompt)

Private Attributes

MemInfo start_
MemInfo now_

Constructor & Destructor Documentation

MemTrace::MemTrace  )  [inline]
 

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:


Member Function Documentation

void MemTrace::diff char *  prompt  )  [inline]
 

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:


Member Data Documentation

MemInfo MemTrace::now_ [private]
 

Definition at line 86 of file mem-trace.h.

Referenced by diff().

MemInfo MemTrace::start_ [private]
 

Definition at line 86 of file mem-trace.h.

Referenced by diff(), and MemTrace().


The documentation for this class was generated from the following file:
Generated on Tue Apr 20 13:00:13 2004 for NS2.26SourcesOriginal by doxygen 1.3.3