mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Make child calls more discoverable.
This commit is contained in:
parent
2009f63e32
commit
ef93c69ee9
@ -1150,12 +1150,10 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
|
|||||||
{
|
{
|
||||||
TextFocused( ICON_FA_STOPWATCH " Time:", TimeToString( iptotalAsm.local * worker.GetSamplingPeriod() ) );
|
TextFocused( ICON_FA_STOPWATCH " Time:", TimeToString( iptotalAsm.local * worker.GetSamplingPeriod() ) );
|
||||||
}
|
}
|
||||||
if( ImGui::IsItemHovered() )
|
if( iptotalAsm.ext )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::SameLine();
|
||||||
if( iptotalAsm.local != 0 ) TextFocused( "Local time:", TimeToString( iptotalAsm.local * worker.GetSamplingPeriod() ) );
|
ImGui::TextDisabled( "(%c%s)", m_childCalls ? '-' : '+', TimeToString( iptotalAsm.ext * worker.GetSamplingPeriod() ) );
|
||||||
if( iptotalAsm.ext != 0 ) TextFocused( "Child time:", TimeToString( iptotalAsm.ext * worker.GetSamplingPeriod() ) );
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
@ -1168,12 +1166,10 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
|
|||||||
{
|
{
|
||||||
TextFocused( ICON_FA_EYE_DROPPER " Samples:", RealToString( iptotalAsm.local ) );
|
TextFocused( ICON_FA_EYE_DROPPER " Samples:", RealToString( iptotalAsm.local ) );
|
||||||
}
|
}
|
||||||
if( ImGui::IsItemHovered() )
|
if( iptotalAsm.ext )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::SameLine();
|
||||||
if( iptotalAsm.local != 0 ) TextFocused( "Local samples:", RealToString( iptotalAsm.local ) );
|
ImGui::Text( "(%c%s)", m_childCalls ? '-' : '+', RealToString( iptotalAsm.ext ) );
|
||||||
if( iptotalAsm.ext != 0 ) TextFocused( "Child samples:", RealToString( iptotalAsm.ext ) );
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user