mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Build list of allocations in a given call stack tree entry.
This commit is contained in:
@@ -7562,6 +7562,20 @@ void View::DrawFrameTreeLevel( std::vector<CallstackFrameTree>& tree, int& idx )
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
if( ImGui::IsItemClicked( 1 ) )
|
||||
{
|
||||
auto& mem = m_worker.GetMemData().data;
|
||||
const auto sz = mem.size();
|
||||
m_memInfo.allocList.clear();
|
||||
for( size_t i=0; i<sz; i++ )
|
||||
{
|
||||
if( v.callstacks.find( mem[i].csAlloc ) != v.callstacks.end() )
|
||||
{
|
||||
m_memInfo.allocList.emplace_back( mem.data() + i );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( io.KeyCtrl && ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
|
||||
Reference in New Issue
Block a user