Add child call samples hints to the UI.

This commit is contained in:
Bartosz Taudul 2021-06-19 17:41:29 +02:00
parent 6e8d57bc98
commit 7ad9cafefb
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1265,6 +1265,12 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
ImGui::SameLine();
ImGui::TextDisabled( "(%c%s)", m_childCalls ? '-' : '+', TimeToString( iptotalAsm.ext * worker.GetSamplingPeriod() ) );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Child call samples" );
ImGui::EndTooltip();
}
}
ImGui::SameLine();
ImGui::Spacing();
@ -1281,6 +1287,12 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
ImGui::SameLine();
ImGui::Text( "(%c%s)", m_childCalls ? '-' : '+', RealToString( iptotalAsm.ext ) );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Child call samples" );
ImGui::EndTooltip();
}
}
ImGui::SameLine();
ImGui::Spacing();