BigBrotherBot v1.6.1
System Development Information for the BigBrotherBot project.

b3::tools::logdiagnostic::LogDiagnostic Class Reference

List of all members.

Public Member Functions

def lines_per_second
def stats_per_second
def show_results
def save_data_yaml
def load_data_yaml
def save_data_csv
def load_data_csv
def save_data
def load_data
def merge_matrix
def weighted_mean_merge
def flatten
def flatten2

Public Attributes

 supermatrix
 file
 stream

Static Public Attributes

int maxlines = 0
 significantzero = True
 debug = False
 faster = True
 morefaster = False

Static Private Attributes

string _lineFormat = r'^\s*(?P<minutes>[0-9]+):(?P<seconds>[0-9]+)\s*.*'

Member Function Documentation

def b3::tools::logdiagnostic::LogDiagnostic::flatten (   self,
  args 
)
def b3::tools::logdiagnostic::LogDiagnostic::flatten2 (   self,
  sequence 
)
def b3::tools::logdiagnostic::LogDiagnostic::lines_per_second (   self,
  args 
)
def b3::tools::logdiagnostic::LogDiagnostic::load_data (   self,
  merge = False,
  args 
)
merge will directly merge the stats asap if enabled, this saves us a lot of memory 
def b3::tools::logdiagnostic::LogDiagnostic::load_data_csv (   self,
  args 
)
load the stats in a simple format and preallocate memory, faster than pickler but slower than cPickler 
def b3::tools::logdiagnostic::LogDiagnostic::load_data_yaml (   self,
  args 
)
Load one or several YAML stats files and merge them with current results 
def b3::tools::logdiagnostic::LogDiagnostic::merge_matrix (   self,
  args 
)
def b3::tools::logdiagnostic::LogDiagnostic::save_data (   self,
  filename,
  args 
)
an all-round saving to file function, it can dump any python object and restore it later, but it's not very ressource efficient 
def b3::tools::logdiagnostic::LogDiagnostic::save_data_csv (   self,
  filename,
  args 
)
much more ressource efficient function but can only save matrixes (better than pickler but not cPickler) 
def b3::tools::logdiagnostic::LogDiagnostic::save_data_yaml (   self,
  filename = None,
  args 
)
Save or show the results in YAML 
def b3::tools::logdiagnostic::LogDiagnostic::show_results (   self,
  filename = None,
  args 
)
def b3::tools::logdiagnostic::LogDiagnostic::stats_per_second (   self,
  args 
)
def b3::tools::logdiagnostic::LogDiagnostic::weighted_mean_merge (   self,
  args 
)

Member Data Documentation

string b3::tools::logdiagnostic::LogDiagnostic::_lineFormat = r'^\s*(?P<minutes>[0-9]+):(?P<seconds>[0-9]+)\s*.*' [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties