mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Allow zooming to collapsed zones.
This commit is contained in:
parent
6cf1ebec04
commit
1fa778891c
@ -1070,6 +1070,12 @@ int View::DrawZoneLevel( const Vector<Event*>& vec, bool hover, double pxns, con
|
|||||||
ImGui::Text( "Zones too small to display: %i", num );
|
ImGui::Text( "Zones too small to display: %i", num );
|
||||||
ImGui::Text( "Execution time: %s", TimeToString( rend - ev.start ) );
|
ImGui::Text( "Execution time: %s", TimeToString( rend - ev.start ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
|
if( ImGui::IsMouseClicked( 2 ) && rend - ev.start > 0 )
|
||||||
|
{
|
||||||
|
m_zvStartNext = ev.start;
|
||||||
|
m_zvEndNext = rend;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1120,7 +1126,7 @@ int View::DrawZoneLevel( const Vector<Event*>& vec, bool hover, double pxns, con
|
|||||||
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay ) );
|
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
if( ImGui::IsMouseDown( 2 ) && ev.end - ev.start > 0 )
|
if( m_zvStartNext == 0 && ImGui::IsMouseClicked( 2 ) && ev.end - ev.start > 0 )
|
||||||
{
|
{
|
||||||
m_zvStartNext = ev.start;
|
m_zvStartNext = ev.start;
|
||||||
m_zvEndNext = ev.end;
|
m_zvEndNext = ev.end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user