[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 14 17:36:52 PDT 2024
================
@@ -408,3 +410,21 @@ llvm::json::Value DebuggerStats::ReportStatistics(
return std::move(global_stats);
}
+
+llvm::json::Value SummaryStatistics::ToJSON() const {
+ return json::Object{{
+ {"name", GetName()},
+ {"type", GetSummaryKindName()},
+ {"invocationCount", GetSummaryCount()},
----------------
clayborg wrote:
changet to `"count"`? `"invocationCount"` is not really telling us anything more that `"count"` would? Please let me know if anyone disagrees.
https://github.com/llvm/llvm-project/pull/102708
More information about the lldb-commits
mailing list