lisa.wa.WAOutput#
- class lisa.wa.WAOutput(path, kernel_path=None)[source]#
Bases:
StatsProp
,Mapping
,Loggable
Recursively parse a
Workload Automation
output, using registered collectors (leaf subclasses ofWACollectorBase
). The data collected are accessible through apandas.DataFrame
in “database” format:meaningless index
all values are tagged using tag columns
- Parameters:
path (str) – Path containing a Workload Automation output.
kernel_path – Kernel source path. Used to resolve the name of the kernel which ran the workload.
kernel_path – str
Example:
wa_output = WAOutput('wa/output/path') # Pick a specific collector. See also WAOutput.get_collector() stats = wa_output['results'].stats stats.plot_stats(filename='stats.html')
Attributes
__reversed__
inheritedSee
collections.abc.Mapping.__reversed__
Properties
DataFrame containing the data collected by all the registered
WAOutput
collectors.List containing all the jobs present in the output of ‘wa run’.
Dict containing a mapping of ‘wa run’ names to
RunOutput
objects.logger
inheritedConvenience short-hand for
self.get_logger()
.stats
inheritedShort-hand property equivalent to
self.get_stats()
.Methods
Each instance is different, like regular objects, and unlike dictionaries.
Returns a new collector with custom parameters passed to it.
__class_getitem__()
inheritedSee
collections.abc.Iterable.__class_getitem__()
get()
inheritedSee
collections.abc.Mapping.get()
get_logger()
inheritedProvides a
logging.Logger
named aftercls
.get_stats()
inheritedReturns a
lisa.stats.Stats
loaded with the resultpandas.DataFrame
.items()
inheritedSee
collections.abc.Mapping.items()
keys()
inheritedSee
collections.abc.Mapping.keys()
log_locals()
inheritedDebugging aid: log the local variables of the calling function.
values()
inheritedSee
collections.abc.Mapping.values()
Attributes#
- WAOutput.__reversed__ = None#
Properties#
- property WAOutput.df[source]#
DataFrame containing the data collected by all the registered
WAOutput
collectors.
- property WAOutput.outputs[source]#
Dict containing a mapping of ‘wa run’ names to
RunOutput
objects.
- property WAOutput.logger#
Inherited property, see
lisa.utils.Loggable.logger
Convenience short-hand for
self.get_logger()
.
- property WAOutput.stats#
Inherited property, see
lisa.wa.StatsProp.stats
Short-hand property equivalent to
self.get_stats()
.
Methods#
- WAOutput.__hash__()[source]#
Each instance is different, like regular objects, and unlike dictionaries.
- WAOutput.get_collector(name, **kwargs)[source]#
Returns a new collector with custom parameters passed to it.
- Parameters:
name (str) – Name of the collector.
- Variable keyword arguments:
Forwarded to the collector’s constructor.
Example:
WAOutput('wa/output/path').get_collector('energy', postprocess=func)
- classmethod WAOutput.__class_getitem__()#
Inherited method, see
collections.abc.Iterable.__class_getitem__()
- WAOutput.get()#
Inherited method, see
collections.abc.Mapping.get()
- classmethod WAOutput.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- WAOutput.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
.
- WAOutput.items()#
Inherited method, see
collections.abc.Mapping.items()
- WAOutput.keys()#
Inherited method, see
collections.abc.Mapping.keys()
- classmethod WAOutput.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.
- WAOutput.values()#
Inherited method, see
collections.abc.Mapping.values()