Log max execution time in profiler dump

This commit is contained in:
Nikita Lisitsa 2025-09-07 13:59:57 +03:00
parent 3b89037c25
commit 3b88908534

View file

@ -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);
}