[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 14 14:55:29 PDT 2024
================
@@ -25,6 +26,7 @@ namespace lldb_private {
using StatsClock = std::chrono::high_resolution_clock;
using StatsTimepoint = std::chrono::time_point<StatsClock>;
+using Duration = std::chrono::duration<double>;
----------------
Jlalond wrote:
Originally I had this passed down to the invocation as well, with the intent of the duration being checked to see if a warn should be emitted to the user.
Decided against that as this has already gotten somewhat complicated. I intend to use Duration in subsequent PR's so I left it moved out of StatsDuration, but if we want to move it back into it's original scope I'm fine with that.
https://github.com/llvm/llvm-project/pull/102708
More information about the lldb-commits
mailing list