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

Don't iterate over 256 CPUs.

This commit is contained in:
Bartosz Taudul
2019-10-15 16:13:36 +02:00
parent eccb0b1e4a
commit 3ce6b1205f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1830,7 +1830,7 @@ uint64_t Worker::GetContextSwitchCount() const
uint64_t Worker::GetContextSwitchPerCpuCount() const
{
uint64_t cnt = 0;
for( int i=0; i<256; i++ )
for( int i=0; i<m_data.cpuDataCount; i++ )
{
cnt += m_data.cpuData[i].cs.size();
}