mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Cosmetics.
This commit is contained in:
parent
14b469f219
commit
c1f6d6c9ce
@ -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 ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user