Belle II Software  release-08-01-10
ModuleStatistics Class Reference

Public Member Functions

def __init__ (self, stats, categories)
 
def __getitem__ (self, item)
 

Static Public Member Functions

def get_dict (function, categories)
 

Public Attributes

 name
 Name property.
 
 time_sum
 Time sum property.
 
 time_mean
 Time mean property.
 
 time_stddev
 Time std property.
 
 memory_sum
 Memory sum property.
 
 memory_mean
 Memory mean property.
 
 memory_stddev
 Memory std property.
 
 calls
 Calls property.
 

Detailed Description

Dictionary list holding the module statistics (like the C++ class ModuleStatistics)

Definition at line 13 of file entities.py.

Constructor & Destructor Documentation

◆ __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."""
21 
22  self.name = stats.name
23 
24  self.time_sum = self.get_dict(stats.time_sum, categories)
25 
26  self.time_mean = self.get_dict(stats.time_mean, categories)
27 
28  self.time_stddev = self.get_dict(stats.time_stddev, categories)
29 
30  self.memory_sum = self.get_dict(stats.memory_sum, categories)
31 
32  self.memory_mean = self.get_dict(stats.memory_mean, categories)
33 
34  self.memory_stddev = self.get_dict(stats.memory_stddev, categories)
35 
36  self.calls = self.get_dict(stats.calls, categories)
37 

Member Function Documentation

◆ __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: