From 6cb2128612de50e3b1c0cc37043964f6431569cb Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Fri, 24 Mar 2023 09:18:06 +0100 Subject: [PATCH] Update plots python script to new database layout --- extensions/apps/traceAnalyzer/scripts/plots.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/apps/traceAnalyzer/scripts/plots.py b/extensions/apps/traceAnalyzer/scripts/plots.py index 6b564ffe..82eb92cd 100644 --- a/extensions/apps/traceAnalyzer/scripts/plots.py +++ b/extensions/apps/traceAnalyzer/scripts/plots.py @@ -19,7 +19,7 @@ def plot(function): def getThreads(connection): cursor = connection.cursor() - cursor.execute("SELECT DISTINCT(TThread) FROM transactions WHERE TThread != 0 ORDER BY TThread") + cursor.execute("SELECT DISTINCT(Thread) FROM transactions WHERE Thread != 0 ORDER BY Thread") result = [] for currentRow in cursor: result.append(currentRow[0]) @@ -172,7 +172,7 @@ def memory_utilisation_window(connection, tracePath, steps): SELECT SUM(DataStrobeEnd - DataStrobeBegin) FROM - transactions + Phases WHERE DataStrobeBegin >= ? AND DataStrobeEnd <= ? @@ -183,7 +183,7 @@ def memory_utilisation_window(connection, tracePath, steps): SELECT SUM(DataStrobeEnd - ?) FROM - transactions + Phases WHERE DataStrobeBegin < ? AND DataStrobeEnd > ? @@ -195,7 +195,7 @@ def memory_utilisation_window(connection, tracePath, steps): SELECT SUM(? - DataStrobeBegin) FROM - transactions + Phases WHERE DataStrobeBegin >= ? AND DataStrobeBegin < ? @@ -207,7 +207,7 @@ def memory_utilisation_window(connection, tracePath, steps): SELECT DataStrobeBegin FROM - transactions + Phases WHERE DataStrobeBegin <= ? AND DataStrobeEnd >= ?