Draw active allocations list.

This commit is contained in:
Bartosz Taudul 2018-04-02 02:37:40 +02:00
parent c4a36398f6
commit e1682c7675

View File

@ -3808,6 +3808,16 @@ void View::DrawMemory()
}
}
ImGui::Separator();
if( ImGui::TreeNode( "Active allocations" ) )
{
ListMemData<decltype( mem.active.begin() )>( mem.active.begin(), mem.active.end(), []( auto& v ) {
ImGui::Text( "0x%" PRIx64, v->second->ptr );
return v->second;
} );
ImGui::TreePop();
}
ImGui::End();
}