mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Also display exact memory allocation size.
This commit is contained in:
parent
92c1685528
commit
68dd90cb94
@ -5654,6 +5654,11 @@ void View::DrawMemoryAllocWindow()
|
||||
sprintf( buf, "0x%" PRIx64, ev.ptr );
|
||||
TextFocused( "Address:", buf );
|
||||
TextFocused( "Size:", MemSizeToString( ev.size ) );
|
||||
if( ev.size >= 10000ll )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s bytes)", RealToString( ev.size, true ) );
|
||||
}
|
||||
ImGui::Separator();
|
||||
TextFocused( "Appeared at", TimeToString( ev.timeAlloc - m_worker.GetTimeBegin() ) );
|
||||
if( ImGui::IsItemClicked() ) CenterAtTime( ev.timeAlloc );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user