mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Don't display hw samples as time in files list.
This commit is contained in:
parent
52708268fe
commit
80e1b0c2cf
@ -1638,28 +1638,35 @@ void SourceView::RenderSymbolSourceView( const AddrStat& iptotal, const unordere
|
|||||||
assert( fit != fileCounts.end() );
|
assert( fit != fileCounts.end() );
|
||||||
if( fit->second.local + fit->second.ext != 0 )
|
if( fit->second.local + fit->second.ext != 0 )
|
||||||
{
|
{
|
||||||
if( m_childCalls )
|
if( m_cost == 0 )
|
||||||
{
|
{
|
||||||
ImGui::TextUnformatted( TimeToString( ( fit->second.local + fit->second.ext ) * worker.GetSamplingPeriod() ) );
|
if( m_childCalls )
|
||||||
|
{
|
||||||
|
ImGui::TextUnformatted( TimeToString( ( fit->second.local + fit->second.ext ) * worker.GetSamplingPeriod() ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::TextUnformatted( TimeToString( fit->second.local * worker.GetSamplingPeriod() ) );
|
||||||
|
}
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
if( fit->second.local )
|
||||||
|
{
|
||||||
|
TextFocused( "Local time:", TimeToString( fit->second.local * worker.GetSamplingPeriod() ) );
|
||||||
|
TextFocused( "Local samples:", RealToString( fit->second.local ) );
|
||||||
|
}
|
||||||
|
if( fit->second.ext )
|
||||||
|
{
|
||||||
|
TextFocused( "Child time:", TimeToString( fit->second.ext * worker.GetSamplingPeriod() ) );
|
||||||
|
TextFocused( "Child samples:", RealToString( fit->second.ext ) );
|
||||||
|
}
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ImGui::TextUnformatted( TimeToString( fit->second.local * worker.GetSamplingPeriod() ) );
|
ImGui::TextUnformatted( RealToString( fit->second.local ) );
|
||||||
}
|
|
||||||
if( ImGui::IsItemHovered() )
|
|
||||||
{
|
|
||||||
ImGui::BeginTooltip();
|
|
||||||
if( fit->second.local )
|
|
||||||
{
|
|
||||||
TextFocused( "Local time:", TimeToString( fit->second.local * worker.GetSamplingPeriod() ) );
|
|
||||||
TextFocused( "Local samples:", RealToString( fit->second.local ) );
|
|
||||||
}
|
|
||||||
if( fit->second.ext )
|
|
||||||
{
|
|
||||||
TextFocused( "Child time:", TimeToString( fit->second.ext * worker.GetSamplingPeriod() ) );
|
|
||||||
TextFocused( "Child samples:", RealToString( fit->second.ext ) );
|
|
||||||
}
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if( m_childCalls )
|
if( m_childCalls )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user