Update plots python script to new database layout

This commit is contained in:
2023-03-24 09:18:06 +01:00
parent 7621ac4a1d
commit 6cb2128612

View File

@@ -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 >= ?