Store die number in CpuThreadTopology.

This commit is contained in:
Bartosz Taudul 2024-08-24 16:36:04 +02:00
parent 357b557684
commit 2716311f51
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 4 additions and 3 deletions

View File

@ -667,7 +667,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks, bool allow
f.Read( thread ); f.Read( thread );
core.second.emplace_back( thread ); core.second.emplace_back( thread );
m_data.cpuTopologyMap.emplace( thread, CpuThreadTopology { packageId, coreId } ); m_data.cpuTopologyMap.emplace( thread, CpuThreadTopology { packageId, dieId, coreId } );
} }
} }
} }
@ -685,7 +685,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks, bool allow
f.Read( thread ); f.Read( thread );
core.second.emplace_back( thread ); core.second.emplace_back( thread );
m_data.cpuTopologyMap.emplace( thread, CpuThreadTopology { packageId, coreId } ); m_data.cpuTopologyMap.emplace( thread, CpuThreadTopology { packageId, 0, coreId } );
} }
} }
} }
@ -6897,7 +6897,7 @@ void Worker::ProcessCpuTopology( const QueueCpuTopology& ev )
core->second.emplace_back( ev.thread ); core->second.emplace_back( ev.thread );
assert( m_data.cpuTopologyMap.find( ev.thread ) == m_data.cpuTopologyMap.end() ); assert( m_data.cpuTopologyMap.find( ev.thread ) == m_data.cpuTopologyMap.end() );
m_data.cpuTopologyMap.emplace( ev.thread, CpuThreadTopology { ev.package, ev.core } ); m_data.cpuTopologyMap.emplace( ev.thread, CpuThreadTopology { ev.package, ev.die, ev.core } );
} }
void Worker::ProcessMemNamePayload( const QueueMemNamePayload& ev ) void Worker::ProcessMemNamePayload( const QueueMemNamePayload& ev )

View File

@ -148,6 +148,7 @@ public:
struct CpuThreadTopology struct CpuThreadTopology
{ {
uint32_t package; uint32_t package;
uint32_t die;
uint32_t core; uint32_t core;
}; };