From f0cbb8a7aa7242d8b328938c952656e6d97bafab Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 20 Sep 2022 21:43:44 +0100 Subject: [PATCH] t/service: Add metrics support --- src/xrt/targets/service/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xrt/targets/service/main.c b/src/xrt/targets/service/main.c index 3e5eed38f..60b545fe7 100644 --- a/src/xrt/targets/service/main.c +++ b/src/xrt/targets/service/main.c @@ -8,6 +8,7 @@ * @ingroup ipc */ +#include "util/u_metrics.h" #include "util/u_trace_marker.h" #include "target_lists.h" @@ -24,6 +25,11 @@ int main(int argc, char *argv[]) { u_trace_marker_init(); + u_metrics_init(); - return ipc_server_main(argc, argv); + int ret = ipc_server_main(argc, argv); + + u_metrics_close(); + + return ret; }