[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:23 PDT 2025


================
@@ -251,6 +251,9 @@ class CommandObjectThreadBacktrace : public CommandObjectIterateOverThreads {
       }
     }
 
+    thread->CalculateTarget()->GetStatistics().SetFirstBtTime(
+        thread->CalculateProcess(), *thread);
+
----------------
clayborg wrote:

What is this measuring? This will call the `SetFirstBtTime` and manually do a backtrace? What if the backtrace has already been done via the SB API? Won't this function go really quickly and not give us any real numbers?

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


More information about the lldb-commits mailing list