1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Store sampling period.

This commit is contained in:
Bartosz Taudul
2020-02-25 23:08:52 +01:00
parent 3402d16548
commit 2b7f5091f1
4 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -1024,6 +1024,7 @@ Profiler::Profiler()
, m_broadcast( nullptr )
, m_noExit( false )
, m_zoneId( 1 )
, m_samplingPeriod( 0 )
, m_stream( LZ4_createStream() )
, m_buffer( (char*)tracy_malloc( TargetFrameSize*3 ) )
, m_bufferOffset( 0 )
@@ -1072,7 +1073,7 @@ Profiler::Profiler()
new(s_compressThread) Thread( LaunchCompressWorker, this );
#ifdef TRACY_HAS_SYSTEM_TRACING
if( SysTraceStart() )
if( SysTraceStart( m_samplingPeriod ) )
{
s_sysTraceThread = (Thread*)tracy_malloc( sizeof( Thread ) );
new(s_sysTraceThread) Thread( SysTraceWorker, nullptr );