![]() |
Belle II Software
release-08-02-05
|
Python interface for ProcessStatistics. More...
#include <ProcessStatisticsPython.h>

Public Member Functions | |
| ProcessStatisticsPython (ModuleStatistics::EStatisticCounters type=ModuleStatistics::c_Event, const std::vector< ModuleStatistics > &modules={}) | |
| Construct a new object to show statistics for a given call type. More... | |
| ProcessStatisticsPython (const ProcessStatisticsPython &)=default | |
| Default copy constructor. | |
| ProcessStatisticsPython & | operator= (const ProcessStatisticsPython &)=default |
| Default assignment operator. | |
| ~ProcessStatisticsPython ()=default | |
| Default destructor. | |
| ProcessStatistics * | getWrapped () |
| Get wrapped ProcessStatistics object. | |
| std::string | getStatisticsString () |
| Return string with statistics for all selected modules. More... | |
| std::string | getStatisticsStringHTML () |
| Return string with statistics for all selected modules as html table. More... | |
| ProcessStatisticsPython | getModuleStatistics (ModuleStatistics::EStatisticCounters type, const boost::python::list &modulesPyList) |
| Get a new statistics object for a different counter/different list of modules. | |
| const ModuleStatistics * | get (const std::shared_ptr< Module > &module) |
| Get statistics for given module. | |
| const ModuleStatistics * | getGlobal () |
| Get statistics for the framework itself. | |
| boost::python::list | getAll () |
| Get statistics for all modules as python list. | |
| void | clear () |
| Clear collected statistics but keep names of modules. | |
Static Public Member Functions | |
| static void | exposePythonAPI () |
| Define python wrappers to make functionality avaiable in python. | |
Private Attributes | |
| ModuleStatistics::EStatisticCounters | m_type {ModuleStatistics::c_Event} |
| Which counter to show when printing the statistics. | |
| std::vector< ModuleStatistics > | m_modules |
| Which modules to show. More... | |
Python interface for ProcessStatistics.
Since ProcessStatistics itself resides in the data store, this wraps around it to export some functionality to python.
Definition at line 31 of file ProcessStatisticsPython.h.
|
inline |
Construct a new object to show statistics for a given call type.
Possibly also restricting the list of modules to be shown
Definition at line 34 of file ProcessStatisticsPython.h.
| string getStatisticsString | ( | ) |
Return string with statistics for all selected modules.
If none are selected show all modules
Can be used in steering file with 'print(statistics)'.
Definition at line 33 of file ProcessStatisticsPython.cc.
| string getStatisticsStringHTML | ( | ) |
Return string with statistics for all selected modules as html table.
If none are selected show all modules
Is used in Jupyter notebooks
Definition at line 40 of file ProcessStatisticsPython.cc.
|
private |
Which modules to show.
If empty, show all modules
Definition at line 83 of file ProcessStatisticsPython.h.