From 16c9c47f14411263889798d89eaa6dde9b1e4771 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Tue, 20 Aug 2024 06:50:33 -0500 Subject: #2354 Enable Tracy on test builds (#2357) * #2354 Enable Tracy on test builds * Only enable Tracy by default on windows --- indra/cmake/Tracy.cmake | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'indra/cmake') diff --git a/indra/cmake/Tracy.cmake b/indra/cmake/Tracy.cmake index 3339c51ba0..d54a32fdc2 100644 --- a/indra/cmake/Tracy.cmake +++ b/indra/cmake/Tracy.cmake @@ -4,11 +4,17 @@ include(Prebuilt) include_guard() add_library( ll::tracy INTERFACE IMPORTED ) -option(USE_TRACY "Use Tracy profiler." OFF) +# default Tracy profiling on for test builds, but off for all others +string(TOLOWER ${VIEWER_CHANNEL} channel_lower) +if(WINDOWS AND channel_lower MATCHES "^second life test") + option(USE_TRACY "Use Tracy profiler." ON) +else() + option(USE_TRACY "Use Tracy profiler." OFF) +endif() if (USE_TRACY) - option(USE_TRACY_ON_DEMAND "Use Tracy profiler." ON) - option(USE_TRACY_LOCAL_ONLY "Use Tracy profiler." OFF) + option(USE_TRACY_ON_DEMAND "Use on-demand Tracy profiling." ON) + option(USE_TRACY_LOCAL_ONLY "Disallow remote Tracy profiling." OFF) use_system_binary(tracy) use_prebuilt_binary(tracy) -- cgit v1.2.3