mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 12:24:32 +00:00
configuration/default: Update to use augmentation
terminology
This commit is contained in:
parent
73416d40c2
commit
dfce5ca7ba
@ -3,12 +3,12 @@ from wa.framework.configuration.plugin_cache import PluginCache
|
|||||||
from wa.utils.serializer import yaml
|
from wa.utils.serializer import yaml
|
||||||
from wa.utils.doc import strip_inlined_text
|
from wa.utils.doc import strip_inlined_text
|
||||||
|
|
||||||
DEFAULT_INSTRUMENTS = ['execution_time',
|
DEFAULT_AUGMENTATIONS = ['execution_time',
|
||||||
'interrupts',
|
'interrupts',
|
||||||
'cpufreq',
|
'cpufreq',
|
||||||
'status',
|
'status',
|
||||||
'standard',
|
'csv'
|
||||||
'csv']
|
]
|
||||||
|
|
||||||
|
|
||||||
def _format_yaml_comment(param, short_description=False):
|
def _format_yaml_comment(param, short_description=False):
|
||||||
@ -21,10 +21,10 @@ def _format_yaml_comment(param, short_description=False):
|
|||||||
return comment
|
return comment
|
||||||
|
|
||||||
|
|
||||||
def _format_instruments(output):
|
def _format_augmentations(output):
|
||||||
plugin_cache = PluginCache()
|
plugin_cache = PluginCache()
|
||||||
output.write("instruments:\n")
|
output.write("augmentations:\n")
|
||||||
for plugin in DEFAULT_INSTRUMENTS:
|
for plugin in DEFAULT_AUGMENTATIONS:
|
||||||
plugin_cls = plugin_cache.loader.get_plugin_class(plugin)
|
plugin_cls = plugin_cache.loader.get_plugin_class(plugin)
|
||||||
output.writelines(_format_yaml_comment(plugin_cls, short_description=True))
|
output.writelines(_format_yaml_comment(plugin_cls, short_description=True))
|
||||||
output.write(" - {}\n".format(plugin))
|
output.write(" - {}\n".format(plugin))
|
||||||
@ -39,4 +39,4 @@ def generate_default_config(path):
|
|||||||
output.writelines(comment)
|
output.writelines(comment)
|
||||||
yaml.dump(entry, output, default_flow_style=False)
|
yaml.dump(entry, output, default_flow_style=False)
|
||||||
output.write("\n")
|
output.write("\n")
|
||||||
_format_instruments(output)
|
_format_augmentations(output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user