aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-14 20:13:32 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-14 20:13:32 +0000
commite9b31faf3008c01e04a9f0e178437eb8823c8077 (patch)
treec053bd1b3a6407d55b07b1a97c94ad7fea88c045
parent2459a394b83e35c47778d74f876d0606329568b9 (diff)
bench_graph_svg: more sorting to get deterministic results
TBR=benchen Review URL: https://codereview.appspot.com/7333045 git-svn-id: http://skia.googlecode.com/svn/trunk@7745 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--bench/bench_graph_svg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/bench_graph_svg.py b/bench/bench_graph_svg.py
index e6aa2e9056..1bcb7f50c7 100644
--- a/bench/bench_graph_svg.py
+++ b/bench/bench_graph_svg.py
@@ -106,7 +106,9 @@ def parse_dir(directory, default_settings, oldest_revision, newest_revision,
(str, {str, str}, Number, Number) -> {int:[BenchDataPoints]}"""
revision_data_points = {} # {revision : [BenchDataPoints]}
- for bench_file in os.listdir(directory):
+ file_list = os.listdir(directory)
+ file_list.sort()
+ for bench_file in file_list:
file_name_match = re.match('bench_r(\d+)_(\S+)', bench_file)
if (file_name_match is None):
continue