diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-17 08:59:56 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-17 08:59:56 +0000 |
commit | edb711ba8e7e4d48953b0210620cb215e199cf94 (patch) | |
tree | a9fb6774eaeeb2695a198ab5f79869f729c02a65 /bench | |
parent | 6a7b033130fb3d2f5c4b7d126babab47c14410df (diff) |
bench_graph_svg: HUGE speedup for parsing tiled bench data
Review URL: https://codereview.appspot.com/7322085
git-svn-id: http://skia.googlecode.com/svn/trunk@7762 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-rw-r--r-- | bench/bench_util.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bench/bench_util.py b/bench/bench_util.py index 7e8a13ed10..9798aa6206 100644 --- a/bench/bench_util.py +++ b/bench/bench_util.py @@ -172,10 +172,13 @@ def parse(settings, lines, representation=None): # add configs on this line to the bench_dic if current_bench: - _ParseAndStoreTimes(CONFIG_RE_COMPILED, False, line, current_bench, - bench_dic, layout_dic, representation) - _ParseAndStoreTimes(TILE_RE_COMPILED, True, line, current_bench, - bench_dic, layout_dic, representation) + if line.startswith(' tile_') : + _ParseAndStoreTimes(TILE_RE_COMPILED, True, line, current_bench, + bench_dic, layout_dic, representation) + else: + _ParseAndStoreTimes(CONFIG_RE_COMPILED, False, line, + current_bench, + bench_dic, layout_dic, representation) # append benches to list, use the total time as final bench value. for bench in bench_dic: |