From e21c3a7afe6f035c5afea14d056c208e78f4669d Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 7 May 2023 00:03:01 +0100 Subject: [PATCH] st/gui: Add some tracing --- src/xrt/state_trackers/gui/gui_prober.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xrt/state_trackers/gui/gui_prober.c b/src/xrt/state_trackers/gui/gui_prober.c index 817f2c652..564ebf542 100644 --- a/src/xrt/state_trackers/gui/gui_prober.c +++ b/src/xrt/state_trackers/gui/gui_prober.c @@ -12,6 +12,7 @@ #include "xrt/xrt_instance.h" #include "util/u_time.h" +#include "util/u_trace_marker.h" #include "gui_common.h" @@ -39,6 +40,8 @@ do_exit(struct gui_program *p, int ret) int gui_prober_init(struct gui_program *p) { + XRT_TRACE_MARKER(); + xrt_result_t xret; // Initialize the prober. @@ -67,6 +70,8 @@ gui_prober_init(struct gui_program *p) int gui_prober_select(struct gui_program *p) { + XRT_TRACE_MARKER(); + xrt_result_t xret = xrt_instance_create_system(p->instance, &p->xsysd, &p->xso, NULL); if (xret != XRT_SUCCESS) { return -1; @@ -78,6 +83,8 @@ gui_prober_select(struct gui_program *p) void gui_prober_update(struct gui_program *p) { + XRT_TRACE_MARKER(); + if (!p->xsysd) { return; } @@ -93,6 +100,8 @@ gui_prober_update(struct gui_program *p) void gui_prober_teardown(struct gui_program *p) { + XRT_TRACE_MARKER(); + xrt_space_overseer_destroy(&p->xso); xrt_system_devices_destroy(&p->xsysd);