From f62e9c0ba5837ed7d50ed6d746fbacac7fb718ac Mon Sep 17 00:00:00 2001 From: JCW Date: Wed, 21 May 2025 17:39:19 +0100 Subject: [PATCH] Modify profiler --- include/xrpl/beast/core/FunctionProfiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xrpl/beast/core/FunctionProfiler.h b/include/xrpl/beast/core/FunctionProfiler.h index ebca1520bb..deea13e1d6 100644 --- a/include/xrpl/beast/core/FunctionProfiler.h +++ b/include/xrpl/beast/core/FunctionProfiler.h @@ -38,7 +38,7 @@ inline std::string getProfilingResults() ss << "Function profiling results:" << std::endl; for (const auto& [name, duration] : FunctionProfiler::funcionDurations) { - ss << " " << name << ": " << duration.count() << " ns" << std::endl; + ss << " " << name << ": " << duration.first.count() << " ns" << ", counts: " << duration.second << std::endl; } return ss.str();