MADNESS  version 0.9
Static Public Member Functions | List of all members
madness::WorldProfile Class Reference

Singleton-like class for holding profiling data and functionality. More...

#include <worldprofile.h>

Static Public Member Functions

static int register_id (const char *name)
 Returns id for the name, registering if necessary. More...
 
static int register_id (const char *classname, const char *function)
 Returns id for the name, registering if necessary. More...
 
static void clear ()
 Clears all profiling information. More...
 
static WorldProfileEntryget_entry (int id)
 Returns a reference to the specified entry. Throws if id is invalid. More...
 
static void print (World &world)
 Prints global profiling information. Global fence involved. Implemented in worldstuff.cc. More...
 

Detailed Description

Singleton-like class for holding profiling data and functionality.

Use the macros PROFILE_FUNC, PROFILE_BLOCK, PROFILE_MEMBER_FUNC

Member Function Documentation

void madness::WorldProfile::clear ( )
static

Clears all profiling information.

References fred(), and madness::wall_time().

WorldProfileEntry & madness::WorldProfile::get_entry ( int  id)
static

Returns a reference to the specified entry. Throws if id is invalid.

References MADNESS_EXCEPTION.

Referenced by madness::WorldProfileObj::pause(), print(), madness::WorldProfileObj::WorldProfileObj(), and madness::WorldProfileObj::~WorldProfileObj().

void madness::WorldProfile::print ( World world)
static
int madness::WorldProfile::register_id ( const char *  name)
static

Returns id for the name, registering if necessary.

References fred().

int madness::WorldProfile::register_id ( const char *  classname,
const char *  function 
)
static

Returns id for the name, registering if necessary.

References fred().


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