summaryrefslogtreecommitdiff
path: root/perf/cairo-perf-trace.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-19 14:14:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-19 14:14:32 +0100
commit18edea36ba6604e4cbdbda1ed56e6117b5768d94 (patch)
tree5c2db8ea9fee629d882a8f68df9870fba29a872a /perf/cairo-perf-trace.c
parent55721d380d5a75a9448f522f9ad48cd18a6c2f65 (diff)
downloadcairo-18edea36ba6604e4cbdbda1ed56e6117b5768d94.tar.gz
[perf] Report line of error during trace
Query the number of new lines processed so far and report that on hitting an error.
Diffstat (limited to 'perf/cairo-perf-trace.c')
-rw-r--r--perf/cairo-perf-trace.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c
index 3ed2bb870..6859a0d7f 100644
--- a/perf/cairo-perf-trace.c
+++ b/perf/cairo-perf-trace.c
@@ -258,10 +258,14 @@ execute (cairo_perf_t *perf,
status = cairo_script_interpreter_destroy (csi);
if (status) {
if (perf->summary) {
- fprintf (perf->summary, "Error during replay: %s\n",
+ unsigned int line_no;
+
+ line_no = cairo_script_interpreter_get_line_number (csi);
+ fprintf (perf->summary, "Error during replay, line %d: %s\n",
+ line_no,
cairo_status_to_string (status));
- goto out;
}
+ goto out;
}
if (perf->raw) {