mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 13:00:14 +01:00
[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:
parent
55721d380d
commit
18edea36ba
1 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue