mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Added ability to zoom to allocation range in allocation window.
This commit is contained in:
parent
560163a031
commit
4960e691d4
@ -6372,6 +6372,15 @@ void View::DrawMemoryAllocWindow()
|
|||||||
const auto tidFree = m_worker.DecompressThread( ev.threadFree );
|
const auto tidFree = m_worker.DecompressThread( ev.threadFree );
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
if( ImGui::Button( ICON_FA_MICROSCOPE " Zoom to allocation" ) )
|
||||||
|
#else
|
||||||
|
if( ImGui::Button( "Zoom to allocation" ) )
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
ZoomToRange( ev.timeAlloc, ev.timeFree >= 0 ? ev.timeFree : m_worker.GetLastTime() );
|
||||||
|
}
|
||||||
|
|
||||||
char buf[64];
|
char buf[64];
|
||||||
sprintf( buf, "0x%" PRIx64, ev.ptr );
|
sprintf( buf, "0x%" PRIx64, ev.ptr );
|
||||||
TextFocused( "Address:", buf );
|
TextFocused( "Address:", buf );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user