MADNESS
version 0.9
|
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 WorldProfileEntry & | get_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... | |
Singleton-like class for holding profiling data and functionality.
Use the macros PROFILE_FUNC, PROFILE_BLOCK, PROFILE_MEMBER_FUNC
|
static |
Clears all profiling information.
References fred(), and madness::wall_time().
|
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().
|
static |
Prints global profiling information. Global fence involved. Implemented in worldstuff.cc.
References madness::WorldProfileEntry::count, madness::WorldProfileEntry::exclusivecmp(), madness::WorldGopInterface::fence(), get_entry(), madness::World::gop, madness::WorldProfileEntry::inclusivecmp(), madness::World::rank(), madness::ProfileStat< T >::sum, madness::wall_time(), and madness::WorldProfileEntry::xcpu.
Referenced by main(), and madness::print_stats().
|
static |
Returns id for the name, registering if necessary.
References fred().
|
static |
Returns id for the name, registering if necessary.
References fred().