[perf] Report line of error during trace

Query the number of new lines processed so far and report that on hitting
an error.
This commit is contained in:
Chris Wilson 2009-06-19 14:14:32 +01:00
parent 55721d380d
commit 18edea36ba

View file

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