From 0794cf56ff2d3b86102ae299b5ad6300bdba38c2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 12 Apr 2020 16:13:39 +0200 Subject: [PATCH] Sort inline functions list by time spent in function. --- server/TracySourceView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 75a92263..b697045a 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -440,6 +440,7 @@ void SourceView::RenderSymbolView( const Worker& worker ) } inlineList++; } + pdqsort_branchless( symInline.begin(), symInline.end(), []( const auto& l, const auto& r ) { return l.second == r.second ? l.first < r.first : l.second > r.second; } ); ImGui::Columns( 3 ); static bool widthSet = false;