lisa.wa.WACollectorBase#
- class lisa.wa.WACollectorBase(wa_output, df_postprocess=None)[source]#
Bases:
StatsProp,Loggable,ABCBase class for all
Workload Automationdataframe 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.DataFramecontaining the data collected.loggerinheritedConvenience short-hand for
self.get_logger().statsinheritedShort-hand property equivalent to
self.get_stats().Methods
get_logger()inheritedProvides a
logging.Loggernamed aftercls.get_stats()inheritedReturns a
lisa.stats.Statsloaded with the resultpandas.DataFrame.log_locals()inheritedDebugging aid: log the local variables of the calling function.
Properties#
- property WACollectorBase.df[source]#
pandas.DataFramecontaining the data collected.
- property WACollectorBase.logger#
Inherited property, see
lisa.utils.Loggable.loggerConvenience short-hand for
self.get_logger().
- property WACollectorBase.stats#
Inherited property, see
lisa.wa.StatsProp.statsShort-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.Loggernamed 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.Statsloaded 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.