Cosmetics.

This commit is contained in:
Bartosz Taudul 2021-11-13 15:39:37 +01:00
parent 14b469f219
commit c1f6d6c9ce
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -16031,10 +16031,7 @@ void View::DrawSampleParents()
} }
Vector<decltype(stats.parents.begin())> data; Vector<decltype(stats.parents.begin())> data;
data.reserve( stats.parents.size() ); data.reserve( stats.parents.size() );
for( auto it = stats.parents.begin(); it != stats.parents.end(); ++it ) for( auto it = stats.parents.begin(); it != stats.parents.end(); ++it ) data.push_back( it );
{
data.push_back( it );
}
pdqsort_branchless( data.begin(), data.end(), []( const auto& l, const auto& r ) { return l->second > r->second; } ); pdqsort_branchless( data.begin(), data.end(), []( const auto& l, const auto& r ) { return l->second > r->second; } );
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextUnformatted( m_statSampleTime ? TimeToString( m_worker.GetSamplingPeriod() * data[m_sampleParents.sel]->second ) : RealToString( data[m_sampleParents.sel]->second ) ); ImGui::TextUnformatted( m_statSampleTime ? TimeToString( m_worker.GetSamplingPeriod() * data[m_sampleParents.sel]->second ) : RealToString( data[m_sampleParents.sel]->second ) );