mesa/src/util/perf
Andy Hsu d226c0d97d u_trace: remove redundant char* to string conversion (v2)
Add the string length parameter to the set_name(),
set_value() function to remove the conversion from
char* to std::string which takes extra work like
calling strlen() to compute the string length.

From the callback sampling in the perfetto tracing,
the ratio of trace_payload_as_extra_intel_end_draw_indexed
to intel_ds_end_draw_indexed drops from 63.80% to 59.65%
with this change.

v2: Add the data of the callback sampling to the description.

Signed-off-by: Andy Hsu <hwandy@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38073>
2025-11-12 06:17:16 +00:00
..
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
cpu_trace.h util/perf: amend missing atrace_init 2025-08-08 16:02:30 +00:00
gpuvis_trace_utils.h util/perf: Fix some warnings. 2024-12-02 15:15:52 +00:00
u_gpuvis.c util/perf: Add gpuvis integration. 2023-08-19 23:09:45 +02:00
u_gpuvis.h util/perf: Add gpuvis integration. 2023-08-19 23:09:45 +02:00
u_perfetto.cc perfetto: allow specifying clock domain for cpu timestamps 2025-08-19 09:50:36 +00:00
u_perfetto.h perfetto: allow specifying clock domain for cpu timestamps 2025-08-19 09:50:36 +00:00
u_perfetto_renderpass.h perfetto: allow specifying clock domain for cpu timestamps 2025-08-19 09:50:36 +00:00
u_sysprof.c util/perf: Add sysprof integration 2025-05-23 11:27:14 +00:00
u_sysprof.h util/perf: Add sysprof integration 2025-05-23 11:27:14 +00:00
u_trace.c u_trace: reserve chunk space before emitting copies 2025-11-04 12:49:04 +00:00
u_trace.h util/u_trace: Add u_trace_move() 2025-06-26 22:51:29 +00:00
u_trace.py u_trace: remove redundant char* to string conversion (v2) 2025-11-12 06:17:16 +00:00
u_trace_compare.py util/u_trace: Add scripts for perf analysis based on u_trace results 2025-07-22 21:15:51 +00:00
u_trace_gather.py util/u_trace: Add scripts for perf analysis based on u_trace results 2025-07-22 21:15:51 +00:00
u_trace_priv.h u_trace: add support for indirect data 2024-08-03 16:03:00 +03:00