diff options
author | Benjamin Otte <otte@redhat.com> | 2010-06-23 14:33:09 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-06-23 14:33:09 +0200 |
commit | 60a4d8dc94ed7141114b99bd453019a16ed29b3d (patch) | |
tree | ddfac6034ad007b012986ad35c39b61b735dd6f3 | |
parent | 413ec4b708a511eb2f3866165a35d3a8d97bd326 (diff) |
perf: Allow parsing text output again
-rw-r--r-- | perf/cairo-perf-report.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c index 2029a884..e62c6eb7 100644 --- a/perf/cairo-perf-report.c +++ b/perf/cairo-perf-report.c @@ -195,16 +195,16 @@ test_report_parse (test_report_t *report, char *line, char *configuration) report->stats.iterations = 0; skip_char ('\n'); } else { - parse_double (report->stats.min_ticks); - skip_space (); + int total_iterations; + report->stats.ticks_per_ms = 1; parse_double (min_time); - report->stats.ticks_per_ms = report->stats.min_ticks / min_time; + report->stats.min_ticks = min_time * 1000; skip_space (); parse_double (median_time); - report->stats.median_ticks = median_time * report->stats.ticks_per_ms; + report->stats.median_ticks = median_time * 1000; skip_space (); @@ -215,6 +215,8 @@ test_report_parse (test_report_t *report, char *line, char *configuration) skip_space (); parse_int (report->stats.iterations); + skip_char ('/'); + parse_int (total_iterations); skip_space (); skip_char ('\n'); |