DRAMSylva uses the same latency range for all plots
This commit is contained in:
@@ -4,6 +4,8 @@ from memUtil import *
|
||||
from math import *
|
||||
import ntpath
|
||||
import os
|
||||
numberOfBins = 50
|
||||
latencyRange = None
|
||||
|
||||
plots = []
|
||||
|
||||
@@ -236,7 +238,7 @@ def latency_histogram(connection, tracePath, steps):
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib.backends.backend_pdf import PdfPages
|
||||
|
||||
plt.hist(dataArray, histtype='bar', facecolor='green')
|
||||
plt.hist(dataArray, numberOfBins, range=latencyRange, histtype='bar', facecolor='green')
|
||||
plt.grid(True)
|
||||
plt.xlabel("Access Time [ns]")
|
||||
plt.ylabel("Number of Accesses (Frequency)")
|
||||
@@ -312,4 +314,7 @@ def generatePlots(pathToTrace):
|
||||
|
||||
if __name__ == "__main__":
|
||||
path = sys.argv[1]
|
||||
if ((len(sys.argv)) > 2):
|
||||
numberOfBins = int(sys.argv[2]) # Optional argument to use a different number of bins
|
||||
latencyRange = (0, int(sys.argv[3])) # Optional argument to use a different range
|
||||
generatePlots(path)
|
||||
|
||||
Reference in New Issue
Block a user