From 827bc26b0a9f56e7cf6c3e3f7503ffe12947691d Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 3 Jul 2026 15:40:32 +0800 Subject: [PATCH] Trace: removes useless empty lines --- src/common/impl/tracer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/impl/tracer.c b/src/common/impl/tracer.c index 498294e9f..46c0bc072 100644 --- a/src/common/impl/tracer.c +++ b/src/common/impl/tracer.c @@ -106,7 +106,7 @@ __attribute__((destructor, no_instrument_function)) void trace_fini() { fprintf(trace_file, "{\"name\":\"%s\",\"ph\":\"%c\",\"pid\":%" PRIu32 ",\"tid\":%" PRIu64 ",\"ts\":%" PRIu64 "}%c\n", fnName, is_exit ? 'E' : 'B', pid, tid, ts, i < count - 1 ? ',' : ' '); } - fputs("\n]\n", trace_file); + fputc(']', trace_file); fclose(trace_file); fprintf(stderr, "Trace written to trace_%d.json with %u events. Use https://ui.perfetto.dev/ to view it.\n", pid, count);