diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-12-04 17:16:17 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-12-04 17:16:17 +0300 |
commit | bbbae3592550fafa500bfd2f5718dfc868443450 (patch) | |
tree | 4d56f3bc75db394c0a7619b77945dc4eb0586bd3 | |
parent | 20f8c8b8a45616ae1cadeb10625f37ca4cacd47c (diff) |
Only identify samples when IdentifySamples is set.
-rw-r--r-- | server/TracyWorker.cpp | 5 | ||||
-rw-r--r-- | server/TracyWorker.hpp | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index ded2094d..ec518a01 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3067,6 +3067,7 @@ void Worker::Exec() m_data.cpuArch = (CpuArchitecture)welcome.cpuArch; m_codeTransfer = welcome.flags & WelcomeFlag::CodeTransfer; m_combineSamples = welcome.flags & WelcomeFlag::CombineSamples; + m_identifySamples = welcome.flags & WelcomeFlag::IdentifySamples; m_data.cpuId = welcome.cpuId; memcpy( m_data.cpuManufacturer, welcome.cpuManufacturer, 12 ); m_data.cpuManufacturer[12] = '\0'; @@ -4399,7 +4400,7 @@ void Worker::DoPostponedWork() m_data.newFramesWereReceived = false; } - if( m_data.newContextSwitchesReceived ) + if( m_identifySamples && m_data.newContextSwitchesReceived ) { for( auto& td : m_data.threads ) { @@ -6318,7 +6319,7 @@ void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td ) m_data.samplesCnt++; #ifndef TRACY_NO_STATISTICS - if( t == 0 ) + if( t == 0 || !m_identifySamples ) { ProcessCallstackSampleImplStats( sd, td ); } diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index ed1d1c40..99557332 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -918,6 +918,7 @@ private: bool m_ignoreMemFreeFaults; bool m_codeTransfer; bool m_combineSamples; + bool m_identifySamples; bool m_inconsistentSamples; short_ptr<GpuCtxData> m_gpuCtxMap[256]; |