lisa.wa.WACollectorBase#
- class lisa.wa.WACollectorBase(wa_output, df_postprocess=None)[source]#
Bases:
StatsProp
,Loggable
,ABC
Base class for all
Workload Automation
dataframe collectors.- Parameters:
df_postprocess (collections.abc.Callable) – Function called to postprocess the collected
pandas.DataFrame
.
See also
Instances of this classes are typically built using
WAOutput.get_collector()
rather than directly.Properties
pandas.DataFrame
containing the data collected.logger
inheritedConvenience short-hand for
self.get_logger()
.stats
inheritedShort-hand property equivalent to
self.get_stats()
.Methods
get_logger()
inheritedProvides a
logging.Logger
named aftercls
.get_stats()
inheritedReturns a
lisa.stats.Stats
loaded with the resultpandas.DataFrame
.log_locals()
inheritedDebugging aid: log the local variables of the calling function.
Properties#
- property WACollectorBase.df[source]#
pandas.DataFrame
containing the data collected.
- property WACollectorBase.logger#
Inherited property, see
lisa.utils.Loggable.logger
Convenience short-hand for
self.get_logger()
.
- property WACollectorBase.stats#
Inherited property, see
lisa.wa.StatsProp.stats
Short-hand property equivalent to
self.get_stats()
.
Methods#
- classmethod WACollectorBase.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- WACollectorBase.get_stats(ensure_default_groups=True, ref_group=None, agg_cols=None, **kwargs)#
Inherited method, see
lisa.wa.StatsProp.get_stats()
Returns a
lisa.stats.Stats
loaded with the resultpandas.DataFrame
.
- classmethod WACollectorBase.log_locals(var_names=None, level='debug')#
Inherited method, see
lisa.utils.Loggable.log_locals()
Debugging aid: log the local variables of the calling function.