MADNESS  0.10.1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
madness::WorldProfileObj Class Reference

#include <worldprofile.h>

Collaboration diagram for madness::WorldProfileObj:
Collaboration graph
[legend]

Public Member Functions

 WorldProfileObj (int id)
 
 ~WorldProfileObj ()
 
void pause (double now, const RMIStats &stats)
 Pause profiling while we are not executing ... accumulate time in self. More...
 
void resume (double now, const RMIStats &stats)
 Resume profiling. More...
 

Private Attributes

const double cpu_base
 Time that I started executing. More...
 
double cpu_start
 Time that I was at top of stack. More...
 
const int id
 My entry in the world profiler. More...
 
WorldProfileObj *const prev
 Pointer to the entry that called me. More...
 
RMIStats stats_base
 Msg stats when I start executing. More...
 
RMIStats stats_start
 Msg stats when I was at top of stack;. More...
 

Static Private Attributes

static thread_local WorldProfileObjcall_stack = 0
 Current top of this thread's call stack. More...
 
static thread_local int mythreadid = -1
 My unique thread id. More...
 

Constructor & Destructor Documentation

◆ WorldProfileObj()

madness::WorldProfileObj::WorldProfileObj ( int  id)

◆ ~WorldProfileObj()

madness::WorldProfileObj::~WorldProfileObj ( )

Member Function Documentation

◆ pause()

void madness::WorldProfileObj::pause ( double  now,
const RMIStats stats 
)

◆ resume()

void madness::WorldProfileObj::resume ( double  now,
const RMIStats stats 
)

Resume profiling.

References cpu_start, and stats_start.

Referenced by ~WorldProfileObj().

Member Data Documentation

◆ call_stack

thread_local WorldProfileObj * madness::WorldProfileObj::call_stack = 0
staticprivate

Current top of this thread's call stack.

Referenced by WorldProfileObj(), and ~WorldProfileObj().

◆ cpu_base

const double madness::WorldProfileObj::cpu_base
private

Time that I started executing.

Referenced by WorldProfileObj(), and ~WorldProfileObj().

◆ cpu_start

double madness::WorldProfileObj::cpu_start
private

Time that I was at top of stack.

Referenced by WorldProfileObj(), ~WorldProfileObj(), pause(), and resume().

◆ id

const int madness::WorldProfileObj::id
private

My entry in the world profiler.

◆ mythreadid

thread_local int madness::WorldProfileObj::mythreadid = -1
staticprivate

My unique thread id.

Referenced by WorldProfileObj(), and ~WorldProfileObj().

◆ prev

WorldProfileObj* const madness::WorldProfileObj::prev
private

Pointer to the entry that called me.

Referenced by WorldProfileObj(), and ~WorldProfileObj().

◆ stats_base

RMIStats madness::WorldProfileObj::stats_base
private

Msg stats when I start executing.

Referenced by WorldProfileObj(), and ~WorldProfileObj().

◆ stats_start

RMIStats madness::WorldProfileObj::stats_start
private

Msg stats when I was at top of stack;.

Referenced by WorldProfileObj(), ~WorldProfileObj(), pause(), and resume().


The documentation for this class was generated from the following files: