mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Zero-initialize CPU topology data structure.
This commit is contained in:
parent
dc4aa7a126
commit
fb617fe998
@ -3756,6 +3756,7 @@ void Profiler::ReportTopology()
|
|||||||
const uint32_t numcpus = sysinfo.dwNumberOfProcessors;
|
const uint32_t numcpus = sysinfo.dwNumberOfProcessors;
|
||||||
|
|
||||||
auto cpuData = (CpuData*)tracy_malloc( sizeof( CpuData ) * numcpus );
|
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;
|
for( uint32_t i=0; i<numcpus; i++ ) cpuData[i].thread = i;
|
||||||
|
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user