mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Zoom to allocation range when middle clicking on address.
This commit is contained in:
parent
4960e691d4
commit
b7d2a690d9
@ -6954,6 +6954,7 @@ void View::ListMemData( T ptr, T end, std::function<void(T&)> DrawAddress, const
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text( "Click on address to display memory allocation info window." );
|
||||
ImGui::Text( "Middle click to zoom to allocation range." );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
ImGui::NextColumn();
|
||||
@ -7028,6 +7029,10 @@ void View::ListMemData( T ptr, T end, std::function<void(T&)> DrawAddress, const
|
||||
{
|
||||
m_memoryAllocInfoWindow = arrIdx;
|
||||
}
|
||||
if( ImGui::IsItemClicked( 2 ) )
|
||||
{
|
||||
ZoomToRange( v->timeAlloc, v->timeFree >= 0 ? v->timeFree : m_worker.GetLastTime() );
|
||||
}
|
||||
}
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user