From 3b88908534715e1d3136dd566e6b8326694de6bb Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 7 Sep 2025 13:59:57 +0300 Subject: [PATCH] Log max execution time in profiler dump --- libs/prof/source/profiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/prof/source/profiler.cpp b/libs/prof/source/profiler.cpp index 6d1785a3..6860148e 100644 --- a/libs/prof/source/profiler.cpp +++ b/libs/prof/source/profiler.cpp @@ -115,6 +115,7 @@ namespace psemek::prof << " 25% " << pretty(stat.percentile(0.25)) << " 50% " << pretty(stat.percentile(0.50)) << " 75% " << pretty(stat.percentile(0.75)) + << " max " << pretty(stat.max()) << " (" << stat.count() << " calls, " << std::setprecision(3) << (stat.count() * 1.f / node.execution_time.count() * 1.f) << "x, " << std::setprecision(2) << (100.f * stat.count() * stat.mean() / node.execution_time.mean() / node.execution_time.count()) << "%)"; else @@ -123,6 +124,7 @@ namespace psemek::prof << " 25% " << pretty(stat.percentile(0.25)) << " 50% " << pretty(stat.percentile(0.50)) << " 75% " << pretty(stat.percentile(0.75)) + << " max " << pretty(stat.max()) << " (" << stat.count() << " calls)"; dump_impl(c.second, depth + 1, level); }