mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Store die number in CpuThreadTopology.
This commit is contained in:
parent
357b557684
commit
2716311f51
@ -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 )
|
||||||
|
@ -148,6 +148,7 @@ public:
|
|||||||
struct CpuThreadTopology
|
struct CpuThreadTopology
|
||||||
{
|
{
|
||||||
uint32_t package;
|
uint32_t package;
|
||||||
|
uint32_t die;
|
||||||
uint32_t core;
|
uint32_t core;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user