Class Stats

Nested Relationships

Nested Types

Class Documentation

class Stats

Public Static Functions

static inline long unsigned int getEventDuration(const Stats::Event e)
static inline long unsigned int getEventDurationInUsec(const Stats::Event e)
static inline void initialize()

use at the start of the program

static inline void finalize()

use at the end of the program

static inline bool isInitialized()
static inline void startEvent(const std::string &name)

start a new timer for event with given name

static inline const Event stopEvent(const std::string &name)

stop a timer for event with given name

static inline const Event &getEvent(const std::string &name)

get the event with given name

static inline long unsigned int getDuration(const std::string &name)

get the stopped time for event with given name

static inline void setAttribute(const std::string &name, const std::string &value)

set an attribute which can later be used for plotting

static inline void write(const std::string &path, CommunicatorType comm = theMPISystem()->getWorldComm())

write the measured times in json format to specified path, only call this after finalize

static inline void writePartial(const std::string &pathPrefix, CommunicatorType comm = theMPISystem()->getWorldComm())

write the measured times until now in json format to specified path

struct Event

Public Functions

inline Event()

Public Members

const time_point start
time_point end