Merge branch 'fix/plots' into 'develop'
Update plots python script to new database layout See merge request ems/astdm/modeling.dram/dram.sys.5!11
This commit is contained in:
@@ -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 >= ?
|
||||
|
||||
Reference in New Issue
Block a user