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:
parent
5c8937eba2
commit
2d50d07438
@ -1,7 +1,7 @@
|
|||||||
#ifndef __TRACYSYSTRACE_HPP__
|
#ifndef __TRACYSYSTRACE_HPP__
|
||||||
#define __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
|
# define TRACY_HAS_SYSTEM_TRACING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -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.
|
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}[
|
\begin{bclogo}[
|
||||||
noborder=true,
|
noborder=true,
|
||||||
couleur=black!5,
|
couleur=black!5,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user