Merge branch 'work/metric_fix' into 'develop'
Fix metric delayed_reasons malformed output See merge request ems/astdm/modeling.dram/dram.sys!338
This commit is contained in:
@@ -922,6 +922,13 @@ def calculateMetrics(pathToTrace, selectedMetrics=[]):
|
||||
nbanks = nbanks + 1
|
||||
r = (name, float(v))
|
||||
calculatedMetrics.append(r)
|
||||
elif (metric.__name__ == "delayed_reasons"):
|
||||
values = mres.split(",")
|
||||
for v in values:
|
||||
name = mname + " (" + v.partition(":")[0].strip() + ")"
|
||||
value = v.partition(":")[2].strip()
|
||||
r = (name, float(value))
|
||||
calculatedMetrics.append(r)
|
||||
else:
|
||||
calculatedMetrics.append(res)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user