MADNESS 0.10.1
|
#include <worldprofile.h>
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. | |
void | resume (double now, const RMIStats &stats) |
Resume profiling. | |
Private Attributes | |
const double | cpu_base |
Time that I started executing. | |
double | cpu_start |
Time that I was at top of stack. | |
const int | id |
My entry in the world profiler. | |
WorldProfileObj *const | prev |
Pointer to the entry that called me. | |
RMIStats | stats_base |
Msg stats when I start executing. | |
RMIStats | stats_start |
Msg stats when I was at top of stack;. | |
Static Private Attributes | |
static thread_local WorldProfileObj * | call_stack = 0 |
Current top of this thread's call stack. | |
static thread_local int | mythreadid = -1 |
My unique thread id. | |
madness::WorldProfileObj::WorldProfileObj | ( | int | id | ) |
madness::WorldProfileObj::~WorldProfileObj | ( | ) |
References call_stack, cpu_base, cpu_start, madness::cpu_time(), d, madness::WorldProfile::get_entry(), madness::RMI::get_stats(), mythreadid, madness::RMIStats::nbyte_recv, madness::RMIStats::nbyte_sent, madness::RMIStats::nmsg_recv, madness::RMIStats::nmsg_sent, madness::nonlinear_vector_solver(), prev, resume(), stats, stats_base, and stats_start.
Pause profiling while we are not executing ... accumulate time in self.
References cpu_start, d, madness::WorldProfile::get_entry(), madness::RMIStats::nbyte_recv, madness::RMIStats::nbyte_sent, madness::RMIStats::nmsg_recv, madness::RMIStats::nmsg_sent, madness::nonlinear_vector_solver(), stats, and stats_start.
Referenced by WorldProfileObj().
Resume profiling.
References cpu_start, madness::nonlinear_vector_solver(), and stats_start.
Referenced by ~WorldProfileObj().
|
staticprivate |
Current top of this thread's call stack.
Referenced by WorldProfileObj(), and ~WorldProfileObj().
|
private |
Time that I started executing.
Referenced by WorldProfileObj(), and ~WorldProfileObj().
|
private |
Time that I was at top of stack.
Referenced by WorldProfileObj(), ~WorldProfileObj(), pause(), and resume().
|
private |
My entry in the world profiler.
|
staticprivate |
My unique thread id.
Referenced by WorldProfileObj(), and ~WorldProfileObj().
|
private |
Pointer to the entry that called me.
Referenced by WorldProfileObj(), and ~WorldProfileObj().
|
private |
Msg stats when I start executing.
Referenced by WorldProfileObj(), and ~WorldProfileObj().
|
private |
Msg stats when I was at top of stack;.
Referenced by WorldProfileObj(), ~WorldProfileObj(), pause(), and resume().