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. | |
virtual | ~Spinlock () |
void | lock () const |
Acquire the spinlock waiting if necessary. | |
bool | try_lock () const |
Try to acquire the spinlock ... return true on success, false on failure. | |
void | unlock () const |
Free a spinlock owned by this thread. | |
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 | |
int | depth [MAX_NTHREAD] |
depth of recursive calls by thread (0 if no active calls) | |
ProfileStat< double > | icpu |
inclusive cpu call (i.e., including calls) | |
ProfileStat< unsigned long > | inbyt_recv |
No. of bytes recv ... inclusive. | |
ProfileStat< unsigned long > | inbyt_sent |
No. of bytes sent ... inclusive. | |
ProfileStat< unsigned long > | inmsg_recv |
No. of active messages recv ... inclusive. | |
ProfileStat< unsigned long > | inmsg_sent |
No. of active messages sent ... inclusive. | |
std::string | name |
name of the entry | |
ProfileStat< double > | xcpu |
exclusive cpu time (i.e., excluding calls) | |
ProfileStat< unsigned long > | xnbyt_recv |
No. of bytes recv ... exclusive. | |
ProfileStat< unsigned long > | xnbyt_sent |
No. of bytes sent ... exclusive. | |
ProfileStat< unsigned long > | xnmsg_recv |
No. of active messages recv ... exclusive. | |
ProfileStat< unsigned long > | xnmsg_sent |
No. of active messages sent ... exclusive. | |
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 |
References a, b, and madness::ProfileStat< T >::sum.
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().