mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Build list of allocations in a given call stack tree entry.
This commit is contained in:
parent
9301986bae
commit
01e0bbb5f9
@ -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();
|
||||
|
@ -402,6 +402,7 @@ private:
|
||||
char pattern[1024] = {};
|
||||
uint64_t ptrFind = 0;
|
||||
bool restrictTime = false;
|
||||
std::vector<const MemEvent*> allocList;
|
||||
} m_memInfo;
|
||||
|
||||
struct {
|
||||
|
Loading…
Reference in New Issue
Block a user