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
This commit is contained in:
epoger@google.com 2013-02-14 20:13:32 +00:00
parent 2459a394b8
commit e9b31faf30

View File

@ -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