MADNESS  version 0.9
Public Member Functions | Static Public Member Functions | 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)
 
WorldProfileEntryoperator= (const WorldProfileEntry &other)
 
void init_par_stats (ProcessID me)
 
void par_reduce (const WorldProfileEntry &other)
 
void clear ()
 
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...
 
bool try_lock () const
 Try to acquire the spinlock ... return true on success, false on failure. More...
 
void lock () const
 Acquire the spinlock waiting if necessary. More...
 
void unlock () const
 Free a spinlock owned by this thread. More...
 
virtual ~Spinlock ()
 

Static Public Member Functions

static bool exclusivecmp (const WorldProfileEntry &a, const WorldProfileEntry &b)
 
static bool inclusivecmp (const WorldProfileEntry &a, const WorldProfileEntry &b)
 

Public Attributes

std::string name
 name of the entry More...
 
int depth
 depth of recursive calls (0 if no active calls) More...
 
ProfileStat< unsigned long > count
 count of times called More...
 
ProfileStat< double > xcpu
 exclusive cpu time (i.e., excluding calls) More...
 
ProfileStat< double > icpu
 inclusive cpu call (i.e., including calls) More...
 

Detailed Description

Used to store profiler info.

Constructor & Destructor Documentation

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

Member Function Documentation

void madness::WorldProfileEntry::clear ( )
bool madness::WorldProfileEntry::exclusivecmp ( const WorldProfileEntry a,
const WorldProfileEntry b 
)
static
bool madness::WorldProfileEntry::inclusivecmp ( const WorldProfileEntry a,
const WorldProfileEntry b 
)
static
void madness::WorldProfileEntry::init_par_stats ( ProcessID  me)
WorldProfileEntry & madness::WorldProfileEntry::operator= ( const WorldProfileEntry other)

References count, depth, icpu, name, and xcpu.

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

References icpu.

Member Data Documentation

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

depth of recursive calls (0 if no active calls)

Referenced by operator=(), madness::WorldProfileObj::WorldProfileObj(), and madness::WorldProfileObj::~WorldProfileObj().

ProfileStat<double> madness::WorldProfileEntry::icpu
std::string madness::WorldProfileEntry::name

name of the entry

Referenced by operator=().

ProfileStat<double> madness::WorldProfileEntry::xcpu

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