 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/ModuleStatistics.h>
14 #include <framework/core/ProcessStatistics.h>
52 const std::vector<ModuleStatistics>* modules =
nullptr);
86 boost::python::list
getAll();
ProcessStatisticsPython & operator=(ProcessStatisticsPython &)=delete
Prohibit assignment operator.
const ModuleStatistics * get(const std::shared_ptr< Module > &module)
Get statistics for given module.
void setModuleName(Module *module, const std::string &name)
Set name for module in statistics.
@ c_Event
Counting time/calls in event()
static ProcessStatisticsPython & getInstance()
Return singleton instance of the statistics.
EStatisticCounters
Enum to define all counter types.
void clear()
Clear collected statistics but keep names of modules.
void setName(const std::string &name)
Set the name of the module for display.
std::string getStatisticsString(ModuleStatistics::EStatisticCounters type=ModuleStatistics::c_Event, const std::vector< ModuleStatistics > *modules=nullptr)
Return string with statistics for all modules.
Abstract base class for different kinds of events.
ModuleStatistics & getStatistics(const Module *module)
Get statistics for single module.
const ModuleStatistics * getGlobal()
Get statistics for the framework itself.
std::string getModuleStatistics(const boost::python::list &modulesPyList, ModuleStatistics::EStatisticCounters type=ModuleStatistics::c_Event)
Return string with statistics for selected modules.
static void exposePythonAPI()
Define python wrappers to make functionality avaiable in python.
ProcessStatisticsPython()=default
Private constructor due to singleton pattern.
boost::python::list getAll()
Get statistics for all modules as python list.
Class to collect call statistics for all modules.
ProcessStatistics * getWrapped()
Get wrapped ProcessStatistics object.
Python interface for ProcessStatistics.
Keep track of time and memory consumption during processing.