mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Allow disabling call stack sampling.
Only on Windows for now.
This commit is contained in:
parent
4caaa325c2
commit
e920b5cf64
@ -372,7 +372,9 @@ bool SysTraceStart( int64_t& samplingPeriod )
|
|||||||
#ifndef TRACY_NO_CONTEXT_SWITCH
|
#ifndef TRACY_NO_CONTEXT_SWITCH
|
||||||
flags = EVENT_TRACE_FLAG_CSWITCH | EVENT_TRACE_FLAG_DISPATCHER | EVENT_TRACE_FLAG_THREAD;
|
flags = EVENT_TRACE_FLAG_CSWITCH | EVENT_TRACE_FLAG_DISPATCHER | EVENT_TRACE_FLAG_THREAD;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef TRACY_NO_SAMPLING
|
||||||
if( isOs64Bit ) flags |= EVENT_TRACE_FLAG_PROFILE;
|
if( isOs64Bit ) flags |= EVENT_TRACE_FLAG_PROFILE;
|
||||||
|
#endif
|
||||||
s_prop->EnableFlags = flags;
|
s_prop->EnableFlags = flags;
|
||||||
s_prop->LogFileMode = EVENT_TRACE_REAL_TIME_MODE;
|
s_prop->LogFileMode = EVENT_TRACE_REAL_TIME_MODE;
|
||||||
s_prop->Wnode.BufferSize = psz;
|
s_prop->Wnode.BufferSize = psz;
|
||||||
|
@ -1788,6 +1788,8 @@ This feature requires privilege elevation, as described in chapter~\ref{contexts
|
|||||||
|
|
||||||
On Windows sampling is performed at 8 kHz frequency (which is the maximum possible value), and on Linux and Android it is performed at 10 kHz.
|
On Windows sampling is performed at 8 kHz frequency (which is the maximum possible value), and on Linux and Android it is performed at 10 kHz.
|
||||||
|
|
||||||
|
Call stack sampling may be disabled by using the \texttt{TRACY\_NO\_SAMPLING} define.
|
||||||
|
|
||||||
\subsubsection{Executable code retrieval}
|
\subsubsection{Executable code retrieval}
|
||||||
\label{executableretrieval}
|
\label{executableretrieval}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user