MADNESS 0.10.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
madness::WorldProfileEntry Struct Reference

Used to store profiler info. More...

#include <worldprofile.h>

Inheritance diagram for madness::WorldProfileEntry:
Inheritance graph
[legend]
Collaboration diagram for madness::WorldProfileEntry:
Collaboration graph
[legend]

Public Member Functions

 WorldProfileEntry (const char *name="")
 
 WorldProfileEntry (const WorldProfileEntry &other)
 
void clear ()
 
void init_par_stats (ProcessID me)
 
WorldProfileEntryoperator= (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
 

Detailed Description

Used to store profiler info.

Constructor & Destructor Documentation

◆ WorldProfileEntry() [1/2]

madness::WorldProfileEntry::WorldProfileEntry ( const char *  name = "")

References depth, and MAX_NTHREAD.

◆ WorldProfileEntry() [2/2]

madness::WorldProfileEntry::WorldProfileEntry ( const WorldProfileEntry other)

Member Function Documentation

◆ clear()

void madness::WorldProfileEntry::clear ( )

◆ exclusivebytcmp()

bool madness::WorldProfileEntry::exclusivebytcmp ( const WorldProfileEntry a,
const WorldProfileEntry b 
)
static

References a, and b.

Referenced by madness::WorldProfile::print().

◆ exclusivecmp()

bool madness::WorldProfileEntry::exclusivecmp ( const WorldProfileEntry a,
const WorldProfileEntry b 
)
static

◆ inclusivebytcmp()

bool madness::WorldProfileEntry::inclusivebytcmp ( const WorldProfileEntry a,
const WorldProfileEntry b 
)
static

References a, and b.

Referenced by madness::WorldProfile::print().

◆ inclusivecmp()

bool madness::WorldProfileEntry::inclusivecmp ( const WorldProfileEntry a,
const WorldProfileEntry b 
)
static

References a, and b.

Referenced by madness::WorldProfile::print().

◆ init_par_stats()

void madness::WorldProfileEntry::init_par_stats ( ProcessID  me)

◆ operator=()

WorldProfileEntry & madness::WorldProfileEntry::operator= ( const WorldProfileEntry other)

◆ par_reduce()

void madness::WorldProfileEntry::par_reduce ( const WorldProfileEntry other)

◆ serialize()

template<class Archive >
void madness::WorldProfileEntry::serialize ( const Archive &  ar)
inline

Member Data Documentation

◆ count

ProfileStat<unsigned long> madness::WorldProfileEntry::count

◆ depth

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().

◆ icpu

ProfileStat<double> madness::WorldProfileEntry::icpu

inclusive cpu call (i.e., including calls)

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ inbyt_recv

ProfileStat<unsigned long> madness::WorldProfileEntry::inbyt_recv

No. of bytes recv ... inclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ inbyt_sent

ProfileStat<unsigned long> madness::WorldProfileEntry::inbyt_sent

No. of bytes sent ... inclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ inmsg_recv

ProfileStat<unsigned long> madness::WorldProfileEntry::inmsg_recv

No. of active messages recv ... inclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ inmsg_sent

ProfileStat<unsigned long> madness::WorldProfileEntry::inmsg_sent

No. of active messages sent ... inclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ MAX_NTHREAD

const int madness::WorldProfileEntry::MAX_NTHREAD =64
static

Referenced by WorldProfileEntry(), and operator=().

◆ name

std::string madness::WorldProfileEntry::name

name of the entry

Referenced by operator=(), and serialize().

◆ xcpu

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().

◆ xnbyt_recv

ProfileStat<unsigned long> madness::WorldProfileEntry::xnbyt_recv

No. of bytes recv ... exclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ xnbyt_sent

ProfileStat<unsigned long> madness::WorldProfileEntry::xnbyt_sent

No. of bytes sent ... exclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ xnmsg_recv

ProfileStat<unsigned long> madness::WorldProfileEntry::xnmsg_recv

No. of active messages recv ... exclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().

◆ xnmsg_sent

ProfileStat<unsigned long> madness::WorldProfileEntry::xnmsg_sent

No. of active messages sent ... exclusive.

Referenced by clear(), init_par_stats(), operator=(), par_reduce(), and serialize().


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