From c9063fbdbebe8770540fae001efb894333cf9184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Roussel?= Date: Sun, 21 Jul 2024 17:37:40 +0200 Subject: [PATCH] Expose TRACY_VERBOSE in cmake for debug --- CMakeLists.txt | 2 ++ manual/tracy.tex | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 358266c0..082474f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,8 @@ set_option(TRACY_SYMBOL_OFFLINE_RESOLVE "Instead of full runtime symbol resoluti set_option(TRACY_LIBBACKTRACE_ELF_DYNLOAD_SUPPORT "Enable libbacktrace to support dynamically loaded elfs in symbol resolution resolution after the first symbol resolve operation" OFF) # advanced +set_option(TRACY_VERBOSE "[advanced] Verbose output from the profiler" OFF) +mark_as_advanced(TRACY_VERBOSE) set_option(TRACY_DEMANGLE "[advanced] Don't use default demangling function - You'll need to provide your own" OFF) mark_as_advanced(TRACY_DEMANGLE) diff --git a/manual/tracy.tex b/manual/tracy.tex index 67e2aac8..458cc5ad 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -638,6 +638,10 @@ Although the basic features will work without them, you'll have to grant elevate \item \texttt{-{}-pid=host} \end{itemize} +\subsubsection{Troubleshooting} + +Setting the \texttt{TRACY\_VERBOSE} variable will make the client display advanced information about the detected features. By matching those debug prints to the source code, you might be able to uncover why some of the features are missing on your platform. + \subsubsection{Changing network port} By default, the client and server communicate on the network using port 8086. The profiling session utilizes the TCP protocol, and the client sends presence announcement broadcasts over UDP.