1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Allow completely disabling system tracing.

This commit is contained in:
Bartosz Taudul 2019-08-21 01:16:25 +02:00
parent 5c8937eba2
commit 2d50d07438
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#ifndef __TRACYSYSTRACE_HPP__
#define __TRACYSYSTRACE_HPP__
#if defined _WIN32 || defined __CYGWIN__ || defined __linux__
#if !defined TRACY_NO_SYSTEM_TRACING && ( defined _WIN32 || defined __CYGWIN__ || defined __linux__ )
# define TRACY_HAS_SYSTEM_TRACING
#endif

View File

@ -1156,6 +1156,8 @@ As a corollary, it is often not enough to know how long it took to execute a zon
To solve this problem, Tracy collects context switch\footnote{A context switch happens when any given CPU core stops executing one thread and starts running another one.} information. This data can be then used to see when a zone was in the executing state and where it was waiting to be resumed.
Context switch data capture may be disabled by adding the \texttt{TRACY\_NO\_SYSTEM\_TRACING} define to the client.
\begin{bclogo}[
noborder=true,
couleur=black!5,