diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-02-15 13:38:06 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-02-15 13:38:06 +0100 |
commit | bb31f4b5666cb7fb72e0723afd90602693e3d344 (patch) | |
tree | 536303970f397ea629d11050910d1f0384e5cafb /lib/loader.py | |
parent | 0b6b55d6a8529d71c42393a6ca4818313c73e554 (diff) |
loader: energytrace: add timestamps to support data
Diffstat (limited to 'lib/loader.py')
-rw-r--r-- | lib/loader.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/loader.py b/lib/loader.py index 32b9716..c0aa105 100644 --- a/lib/loader.py +++ b/lib/loader.py @@ -778,8 +778,12 @@ class RawData: "param": list(), } if "plot" in offline_trace_part: - online_trace_part["offline_support"] = ["power_traces"] + online_trace_part["offline_support"] = [ + "power_traces", + "timestamps", + ] online_trace_part["offline_aggregates"]["power_traces"] = list() + online_trace_part["offline_aggregates"]["timestamps"] = list() if online_trace_part["isa"] == "transition": online_trace_part["offline_aggregates"][ "offline_attributes" @@ -807,6 +811,7 @@ class RawData: if "plot" in offline_trace_part: offline_aggregates["power_traces"].append(offline_trace_part["plot"][1]) + offline_aggregates["timestamps"].append(offline_trace_part["plot"][0]) if online_trace_part["isa"] == "transition": offline_aggregates["rel_energy_prev"].append( |