Dictionary list holding the module statistics (like the C++ class ModuleStatistics)
Definition at line 13 of file entities.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
stats, |
|
|
|
categories |
|
) |
| |
Create a new module statistics entity.
Definition at line 19 of file entities.py.
19 def __init__(self, stats, categories):
20 """Create a new module statistics entity."""
22 self.name = stats.name
24 self.time_sum = self.get_dict(stats.time_sum, categories)
26 self.time_mean = self.get_dict(stats.time_mean, categories)
28 self.time_stddev = self.get_dict(stats.time_stddev, categories)
30 self.memory_sum = self.get_dict(stats.memory_sum, categories)
32 self.memory_mean = self.get_dict(stats.memory_mean, categories)
34 self.memory_stddev = self.get_dict(stats.memory_stddev, categories)
36 self.calls = self.get_dict(stats.calls, categories)
◆ __getitem__()
def __getitem__ |
( |
|
self, |
|
|
|
item |
|
) |
| |
Convenience function for the display.
Definition at line 46 of file entities.py.
◆ get_dict()
def get_dict |
( |
|
function, |
|
|
|
categories |
|
) |
| |
|
static |
Call the function on each information in the categories and return a dict
name -> function(value)
Definition at line 39 of file entities.py.
The documentation for this class was generated from the following file:
- framework/scripts/hep_ipython_tools/ipython_handler_basf2/entities.py