MADNESS
0.10.1
|
Used to store profiler info. More...
#include <worldprofile.h>
Public Member Functions | |
WorldProfileEntry (const char *name="") | |
WorldProfileEntry (const WorldProfileEntry &other) | |
void | clear () |
void | init_par_stats (ProcessID me) |
WorldProfileEntry & | operator= (const WorldProfileEntry &other) |
void | par_reduce (const WorldProfileEntry &other) |
template<class Archive > | |
void | serialize (const Archive &ar) |
Public Member Functions inherited from madness::Spinlock | |
Spinlock (int junk=0) | |
Make and initialize a spinlock ... initial state is unlocked. More... | |
virtual | ~Spinlock () |
void | lock () const |
Acquire the spinlock waiting if necessary. More... | |
bool | try_lock () const |
Try to acquire the spinlock ... return true on success, false on failure. More... | |
void | unlock () const |
Free a spinlock owned by this thread. More... | |
Static Public Member Functions | |
static bool | exclusivebytcmp (const WorldProfileEntry &a, const WorldProfileEntry &b) |
static bool | exclusivecmp (const WorldProfileEntry &a, const WorldProfileEntry &b) |
static bool | inclusivebytcmp (const WorldProfileEntry &a, const WorldProfileEntry &b) |
static bool | inclusivecmp (const WorldProfileEntry &a, const WorldProfileEntry &b) |
Public Attributes | |
ProfileStat< unsigned long > | count |
count of times called More... | |
int | depth [MAX_NTHREAD] |
depth of recursive calls by thread (0 if no active calls) More... | |
ProfileStat< double > | icpu |
inclusive cpu call (i.e., including calls) More... | |
ProfileStat< unsigned long > | inbyt_recv |
No. of bytes recv ... inclusive. More... | |
ProfileStat< unsigned long > | inbyt_sent |
No. of bytes sent ... inclusive. More... | |
ProfileStat< unsigned long > | inmsg_recv |
No. of active messages recv ... inclusive. More... | |
ProfileStat< unsigned long > | inmsg_sent |
No. of active messages sent ... inclusive. More... | |
std::string | name |
name of the entry More... | |
ProfileStat< double > | xcpu |
exclusive cpu time (i.e., excluding calls) More... | |
ProfileStat< unsigned long > | xnbyt_recv |
No. of bytes recv ... exclusive. More... | |
ProfileStat< unsigned long > | xnbyt_sent |
No. of bytes sent ... exclusive. More... | |
ProfileStat< unsigned long > | xnmsg_recv |
No. of active messages recv ... exclusive. More... | |
ProfileStat< unsigned long > | xnmsg_sent |
No. of active messages sent ... exclusive. More... | |
Static Public Attributes | |
static const int | MAX_NTHREAD =64 |
Used to store profiler info.
madness::WorldProfileEntry::WorldProfileEntry | ( | const char * | name = "" | ) |
References depth, and MAX_NTHREAD.
madness::WorldProfileEntry::WorldProfileEntry | ( | const WorldProfileEntry & | other | ) |
void madness::WorldProfileEntry::clear | ( | ) |
References madness::ProfileStat< T >::clear(), count, icpu, inbyt_recv, inbyt_sent, inmsg_recv, inmsg_sent, xcpu, xnbyt_recv, xnbyt_sent, xnmsg_recv, and xnmsg_sent.
|
static |
Referenced by madness::WorldProfile::print().
|
static |
Referenced by madness::WorldProfile::print().
|
static |
Referenced by madness::WorldProfile::print().
|
static |
Referenced by madness::WorldProfile::print().
void madness::WorldProfileEntry::init_par_stats | ( | ProcessID | me | ) |
References count, icpu, inbyt_recv, inbyt_sent, madness::ProfileStat< T >::init_par_stats(), inmsg_recv, inmsg_sent, me, xcpu, xnbyt_recv, xnbyt_sent, xnmsg_recv, and xnmsg_sent.
WorldProfileEntry & madness::WorldProfileEntry::operator= | ( | const WorldProfileEntry & | other | ) |
References count, depth, icpu, inbyt_recv, inbyt_sent, inmsg_recv, inmsg_sent, MAX_NTHREAD, name, xcpu, xnbyt_recv, xnbyt_sent, xnmsg_recv, and xnmsg_sent.
void madness::WorldProfileEntry::par_reduce | ( | const WorldProfileEntry & | other | ) |
References count, icpu, inbyt_recv, inbyt_sent, inmsg_recv, inmsg_sent, madness::ProfileStat< T >::par_reduce(), xcpu, xnbyt_recv, xnbyt_sent, xnmsg_recv, and xnmsg_sent.
|
inline |
References count, depth, icpu, inbyt_recv, inbyt_sent, inmsg_recv, inmsg_sent, name, xcpu, xnbyt_recv, xnbyt_sent, xnmsg_recv, and xnmsg_sent.
ProfileStat<unsigned long> madness::WorldProfileEntry::count |
count of times called
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), madness::WorldProfile::print(), and serialize().
int madness::WorldProfileEntry::depth[MAX_NTHREAD] |
depth of recursive calls by thread (0 if no active calls)
Referenced by WorldProfileEntry(), madness::WorldProfileObj::WorldProfileObj(), operator=(), and serialize().
ProfileStat<double> madness::WorldProfileEntry::icpu |
inclusive cpu call (i.e., including calls)
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::inbyt_recv |
No. of bytes recv ... inclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::inbyt_sent |
No. of bytes sent ... inclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::inmsg_recv |
No. of active messages recv ... inclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::inmsg_sent |
No. of active messages sent ... inclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
|
static |
Referenced by WorldProfileEntry(), and operator=().
std::string madness::WorldProfileEntry::name |
name of the entry
Referenced by operator=(), and serialize().
ProfileStat<double> madness::WorldProfileEntry::xcpu |
exclusive cpu time (i.e., excluding calls)
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), madness::WorldProfile::print(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::xnbyt_recv |
No. of bytes recv ... exclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::xnbyt_sent |
No. of bytes sent ... exclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::xnmsg_recv |
No. of active messages recv ... exclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().
ProfileStat<unsigned long> madness::WorldProfileEntry::xnmsg_sent |
No. of active messages sent ... exclusive.
Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().