[Lldb-commits] [lldb] [LLDB][Stats] Calculate active time to first Bt (PR #161604)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 7 15:42:22 PDT 2025


================
@@ -513,6 +518,63 @@ llvm::json::Value DebuggerStats::ReportStatistics(
   return std::move(global_stats);
 }
 
+void TargetStats::SetFirstBtTime(lldb::ProcessSP process_sp, Thread &thread) {
+  if (m_first_bt_time_set)
----------------
clayborg wrote:

use `std::once` with the `std::once_flag`

https://github.com/llvm/llvm-project/pull/161604


More information about the lldb-commits mailing list