From 09eed96338756056c76cabcad118e117c50e6f3e Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Wed, 25 Nov 2020 11:02:48 +0100 Subject: [PATCH] New delayed metric --- DRAMSys/traceAnalyzer/scripts/metrics.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DRAMSys/traceAnalyzer/scripts/metrics.py b/DRAMSys/traceAnalyzer/scripts/metrics.py index cc4e8e5e..c3a9f50f 100644 --- a/DRAMSys/traceAnalyzer/scripts/metrics.py +++ b/DRAMSys/traceAnalyzer/scripts/metrics.py @@ -90,6 +90,13 @@ def memory_idle(connection): return (idle[0]/clk) +@metric +def memory_delayed(connection): + total = memory_total(connection) + active = memory_active(connection) + idle = memory_idle(connection) + return total - active - idle + @metric def memory_utilisation_percent_new(connection): total = memory_total(connection)