From 2844fea858ceada5c25d83a7cac70f937d0ff8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Wed, 23 Feb 2022 10:58:31 +0100 Subject: [PATCH 1/4] CMake: Add missing options --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 601d2a4d..5e9ca329 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,8 +36,10 @@ endmacro() set_option(TRACY_ENABLE "Enable profiling" ON) set_option(TRACY_ON_DEMAND "On-demand profiling" OFF) set_option(TRACY_CALLSTACK "Collect call stacks" OFF) +set_option(TRACY_NO_CALLSTACK_INLINES "Disables the inline functions in callstacks" OFF) set_option(TRACY_ONLY_LOCALHOST "Only listen on the localhost interface" OFF) set_option(TRACY_NO_BROADCAST "Disable client discovery by broadcast to local network" OFF) +set_option(TRACY_ONLY_IPV4 "Tracy will only accept connections on IPV4 addresses (disable IPv6)" OFF) set_option(TRACY_NO_CODE_TRANSFER "Disable collection of source code" OFF) set_option(TRACY_NO_CONTEXT_SWITCH "Disable capture of context switches" OFF) set_option(TRACY_NO_EXIT "Client executable does not exit until all profile data is sent to server" OFF) @@ -45,6 +47,10 @@ set_option(TRACY_NO_FRAME_IMAGE "Disable capture of frame images" OFF) set_option(TRACY_NO_SAMPLING "Disable call stack sampling" OFF) set_option(TRACY_NO_VERIFY "Disable zone validation for C API" OFF) set_option(TRACY_NO_VSYNC_CAPTURE "Disable capture of hardware Vsync events" OFF) +set_option(TRACY_NO_FRAME_IMAGE "Disable the frame image support and its thread" OFF) +set_option(TRACY_DELAYED_INIT "Enable delayed initialization of the library (init on first call)" OFF) +set_option(TRACY_MANUAL_LIFETIME "Enable the manual lifetime management of the profile" OFF) +set_option(TRACY_FIBERS "Enable fibers support" OFF) if(BUILD_SHARED_LIBS) target_compile_definitions(TracyClient PRIVATE TRACY_EXPORTS) From 92a0feb8218a811b82601558daf1a358ec17d39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Wed, 23 Feb 2022 14:09:04 +0100 Subject: [PATCH 2/4] CMake: Add the new TRACY_NO_CALLSTACK option --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e9ca329..d0372616 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,8 @@ endmacro() set_option(TRACY_ENABLE "Enable profiling" ON) set_option(TRACY_ON_DEMAND "On-demand profiling" OFF) -set_option(TRACY_CALLSTACK "Collect call stacks" OFF) +set_option(TRACY_CALLSTACK "Regions collect call stacks" OFF) +set_option(TRACY_NO_CALLSTACK "Disable all callstack related functionality" OFF) set_option(TRACY_NO_CALLSTACK_INLINES "Disables the inline functions in callstacks" OFF) set_option(TRACY_ONLY_LOCALHOST "Only listen on the localhost interface" OFF) set_option(TRACY_NO_BROADCAST "Disable client discovery by broadcast to local network" OFF) From d48fdafde7ec58776463944406b230c2f648b99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Wed, 23 Feb 2022 14:16:50 +0100 Subject: [PATCH 3/4] Fix IPV4 -> IPv4 typo --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d0372616..fd63eccf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ set_option(TRACY_NO_CALLSTACK "Disable all callstack related functionality" OFF) set_option(TRACY_NO_CALLSTACK_INLINES "Disables the inline functions in callstacks" OFF) set_option(TRACY_ONLY_LOCALHOST "Only listen on the localhost interface" OFF) set_option(TRACY_NO_BROADCAST "Disable client discovery by broadcast to local network" OFF) -set_option(TRACY_ONLY_IPV4 "Tracy will only accept connections on IPV4 addresses (disable IPv6)" OFF) +set_option(TRACY_ONLY_IPV4 "Tracy will only accept connections on IPv4 addresses (disable IPv6)" OFF) set_option(TRACY_NO_CODE_TRANSFER "Disable collection of source code" OFF) set_option(TRACY_NO_CONTEXT_SWITCH "Disable capture of context switches" OFF) set_option(TRACY_NO_EXIT "Client executable does not exit until all profile data is sent to server" OFF) From f4f558bdc9fde021154e6cafb2dd9e0601ba23f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Wed, 23 Feb 2022 14:29:20 +0100 Subject: [PATCH 4/4] CMake: New description for TRACY_CALLSTACK --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd63eccf..42cc0945 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ endmacro() set_option(TRACY_ENABLE "Enable profiling" ON) set_option(TRACY_ON_DEMAND "On-demand profiling" OFF) -set_option(TRACY_CALLSTACK "Regions collect call stacks" OFF) +set_option(TRACY_CALLSTACK "Enfore callstack collection for tracy regions" OFF) set_option(TRACY_NO_CALLSTACK "Disable all callstack related functionality" OFF) set_option(TRACY_NO_CALLSTACK_INLINES "Disables the inline functions in callstacks" OFF) set_option(TRACY_ONLY_LOCALHOST "Only listen on the localhost interface" OFF)