bart.common.Analyzer module

Allow the user to assert various conditions based on the grammar defined in trappy.stats.grammar. The class is also intended to have aggregator based functionality. This is not implemented yet.

class bart.common.Analyzer.Analyzer(data, config, **kwargs)[source]

Bases: object

Parameters:
  • data (trappy.ftrace.FTrace) – TRAPpy FTrace Object
  • config (dict) – A dictionary of variables, classes and functions that can be used in the statements
assertStatement(statement, select=None)[source]

Solve the statement for a boolean result

Parameters:
  • statement (str) – A string representing a valid trappy.stats.grammar statement
  • select (pandas.DataFrame column) – If the result represents a boolean mask and the data was derived from a TRAPpy event with a pivot value. The select can be used to select a particular pivot value
getStatement(statement, reference=False, select=None)[source]

Evaluate the statement