mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
u_trace: print tracepoint params in csv output
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30589>
This commit is contained in:
parent
ace5daabbd
commit
21ec1cdea9
1 changed files with 6 additions and 1 deletions
|
|
@ -225,8 +225,13 @@ print_csv_event(struct u_trace_context *utctx,
|
|||
int32_t delta,
|
||||
const void *indirect)
|
||||
{
|
||||
fprintf(utctx->out, "%u,%u,%"PRIu64",%s,\n",
|
||||
fprintf(utctx->out, "%u,%u,%"PRIu64",%s,",
|
||||
utctx->frame_nr, utctx->batch_nr, ns, evt->tp->name);
|
||||
if (evt->tp->print) {
|
||||
evt->tp->print(utctx->out, evt->payload, indirect);
|
||||
} else {
|
||||
fprintf(utctx->out, "\n");
|
||||
}
|
||||
}
|
||||
|
||||
static struct u_trace_printer csv_printer = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue