From 2e07871e8807fee00ec5ff5aecaab7c0233b2917 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 12 May 2026 11:24:09 -0500 Subject: [PATCH] trace: Use an unsigned char for the annotation type This brings the array entry size down to 24 bytes, and we do allocate a lot of them. I've lazily fixed a tabs vs spaces style issue at the same time. Signed-off-by: Derek Foreman --- libweston/perfetto/u_perfetto.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libweston/perfetto/u_perfetto.h b/libweston/perfetto/u_perfetto.h index 77591f6fd..febbefc0d 100644 --- a/libweston/perfetto/u_perfetto.h +++ b/libweston/perfetto/u_perfetto.h @@ -47,13 +47,13 @@ enum weston_debug_annotation_type { }; struct weston_debug_annotation { - const char *key; - enum weston_debug_annotation_type type; - union { - int ivalue; - float fvalue; - const char *svalue; - }; + const char *key; + union { + int ivalue; + float fvalue; + const char *svalue; + }; + unsigned char type; unsigned char parent; unsigned char key_size; };