Skip to content

Commit 16c9c47

Browse files
#2354 Enable Tracy on test builds (#2357)
* #2354 Enable Tracy on test builds * Only enable Tracy by default on windows
1 parent f92c204 commit 16c9c47

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

indra/cmake/Tracy.cmake

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ include(Prebuilt)
44
include_guard()
55
add_library( ll::tracy INTERFACE IMPORTED )
66

7-
option(USE_TRACY "Use Tracy profiler." OFF)
7+
# default Tracy profiling on for test builds, but off for all others
8+
string(TOLOWER ${VIEWER_CHANNEL} channel_lower)
9+
if(WINDOWS AND channel_lower MATCHES "^second life test")
10+
option(USE_TRACY "Use Tracy profiler." ON)
11+
else()
12+
option(USE_TRACY "Use Tracy profiler." OFF)
13+
endif()
814

915
if (USE_TRACY)
10-
option(USE_TRACY_ON_DEMAND "Use Tracy profiler." ON)
11-
option(USE_TRACY_LOCAL_ONLY "Use Tracy profiler." OFF)
16+
option(USE_TRACY_ON_DEMAND "Use on-demand Tracy profiling." ON)
17+
option(USE_TRACY_LOCAL_ONLY "Disallow remote Tracy profiling." OFF)
1218

1319
use_system_binary(tracy)
1420
use_prebuilt_binary(tracy)

0 commit comments

Comments
 (0)