diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-06-23 16:35:26 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-06-23 16:35:26 +0200 |
commit | e761a12419477776a0846de5210d58c8ee57ffee (patch) | |
tree | 77e263fbd94a9e32179d4ecb9d4c3ccdc3d3ca71 /bin | |
parent | 31a87322198be21b2db3e71fd3070e198d368333 (diff) |
simplify dtree builder
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-config.py | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/bin/analyze-config.py b/bin/analyze-config.py index 2a92601..ca07980 100755 --- a/bin/analyze-config.py +++ b/bin/analyze-config.py @@ -141,29 +141,8 @@ def main(): ) model = AnalyticModel(by_name, params, compute_stats=False) - - model.attr_by_name["multipass"] = dict() - model.attr_by_name["multipass"]["rom_usage"] = ModelAttribute( - "multipass", - "rom_usage", - by_name["multipass"]["rom_usage"], - by_name["multipass"]["param"], - params, - ) - model.attr_by_name["multipass"]["ram_usage"] = ModelAttribute( - "multipass", - "rom_usage", - by_name["multipass"]["ram_usage"], - by_name["multipass"]["param"], - params, - ) - - model.attr_by_name["multipass"]["rom_usage"].model_function = model.build_tree( - params, data, 0, 100 - ) - model.attr_by_name["multipass"]["ram_usage"].model_function = model.build_tree( - params, data, 1, 20 - ) + model.build_dtree("multipass", "rom_usage", 100) + model.build_dtree("multipass", "ram_usage", 20) with open("kconfigmodel.json", "w") as f: json_model = model.to_json(with_param_name=True, param_names=params) |