diff options
Diffstat (limited to 'utils/ezbench.py')
-rw-r--r-- | utils/ezbench.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/utils/ezbench.py b/utils/ezbench.py index 5c7c65d..6bc180f 100644 --- a/utils/ezbench.py +++ b/utils/ezbench.py @@ -98,7 +98,7 @@ def readCommitLabels(): return labels -def readPerformanceReport(log_folder, wantFrametime = False): +def readPerformanceReport(log_folder, wantFrametime = False, silentMode = False): benchmarks = [] commits = [] labels = dict() @@ -127,7 +127,8 @@ def readPerformanceReport(log_folder, wantFrametime = False): sys.exit(2) # Gather all the information from the commits and generate the images - print ("Reading the results for {0} commits".format(len(commitsLines))) + if not silentMode: + print ("Reading the results for {0} commits".format(len(commitsLines))) commits_txt = "" table_entries_txt = "" for commitLine in commitsLines: @@ -190,6 +191,15 @@ def readPerformanceReport(log_folder, wantFrametime = False): return (commits, benchmarks) +def getPerformanceResultsCommitBenchmark(commit, benchmark, wantFrametime = False): + for result in commit.results: + if result.benchmark != benchmark: + continue + + return array(result.data) + + return [] + def getResultsBenchmarkDiffs(commits, benchmark, wantFrametime = False): results = [] |