Zero-initialize CPU topology data structure.

This commit is contained in:
Bartosz Taudul 2024-08-22 00:53:43 +02:00
parent dc4aa7a126
commit fb617fe998
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3756,6 +3756,7 @@ void Profiler::ReportTopology()
const uint32_t numcpus = sysinfo.dwNumberOfProcessors;
auto cpuData = (CpuData*)tracy_malloc( sizeof( CpuData ) * numcpus );
memset( cpuData, 0, sizeof( CpuData ) * numcpus );
for( uint32_t i=0; i<numcpus; i++ ) cpuData[i].thread = i;
int idx = 0;