Merge pull request #25354 from Ranoller/patch-5

Profiler list functions from max to less expensive
This commit is contained in:
Rémi Verschelde 2019-01-26 20:44:10 +01:00 committed by GitHub
commit d9268265dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -392,7 +392,7 @@ void EditorProfiler::_update_frame() {
category->set_custom_color(0, _get_color_from_signature(m.categories[i].signature));
}
for (int j = 0; j < m.categories[i].items.size(); j++) {
for (int j = m.categories[i].items.size() - 1; j >= 0; j--) {
const Metric::Category::Item &it = m.categories[i].items[j];
TreeItem *item = variables->create_item(category);