Fix wrong directory used, wrong sorting and time formatting

This commit is contained in:
2017-08-18 17:18:14 +02:00
parent d4370881ca
commit 0c63b7327c
2 changed files with 3 additions and 6 deletions

View File

@@ -12,9 +12,6 @@ from foundation import (config,
util,)
from dateutil import parser
# TODO(sergey): Make it configurable.
RESULTS_DIRECTORY = "/tmp/blender-benchmark/"
########################################
# Base support class.
########################################
@@ -196,7 +193,7 @@ class LatestResultVisitor(ResultVisitor):
for device_name, stats in self.devices_.items():
for scene_name in stats.keys():
all_scenes.add(scene_name)
all_scenes = list(all_scenes)
all_scenes = sorted(list(all_scenes))
# Gather datasets in format of charts.
datasets = []
device_index = 0
@@ -244,7 +241,7 @@ def main():
# Do actual parse.
logger.INFO("Iterating over all benchmark results...")
visitors = [latest_results_visitor]
iterateBenchmarksRoot(RESULTS_DIRECTORY, visitors)
iterateBenchmarksRoot(config['parser']['benchmark_dir'], visitors)
# Store results.
logger.INFO("Storing results...")
dataset_dir = config['parser']['dataset_dir']

View File

@@ -39,7 +39,7 @@ function secondsToHumanReadable(seconds) {
}
result += padValue(m, 2) + ":";
result += padValue(s, 2) + ".";
result += msec;
result += padValue(msec, 2);
return result;
}