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

Add no-statistics guards.

This commit is contained in:
Bartosz Taudul
2021-04-18 22:59:10 +02:00
parent cbf8550a45
commit e189f596ac
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -2000,6 +2000,7 @@ uint64_t Worker::GetContextSwitchPerCpuCount() const
return cnt;
}
#ifndef TRACY_NO_STATISTICS
uint64_t Worker::GetChildSamplesCountFull() const
{
uint64_t cnt = 0;
@@ -2009,6 +2010,7 @@ uint64_t Worker::GetChildSamplesCountFull() const
}
return cnt;
}
#endif
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
{