diff options
author | Dave Parks <davep@lindenlab.com> | 2024-08-20 06:50:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 06:50:33 -0500 |
commit | 16c9c47f14411263889798d89eaa6dde9b1e4771 (patch) | |
tree | 1e45eae933f44fdf800a282cecb5ac651f7806c0 /indra/cmake | |
parent | f92c2040b94da7eb4fb2ba3ae9f7f7233e2463b1 (diff) |
#2354 Enable Tracy on test builds (#2357)
* #2354 Enable Tracy on test builds
* Only enable Tracy by default on windows
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/Tracy.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
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) |