[Lldb-commits] [lldb] [lldb-dap] Add timestamps to protocol logs (PR #93540)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Tue May 28 08:50:14 PDT 2024


================
@@ -103,7 +103,9 @@ void DAP::SendJSON(const llvm::json::Value &json) {
   SendJSON(json_str);
 
   if (log) {
-    *log << "<-- " << std::endl
+    auto now = std::chrono::duration<double>(
+        std::chrono::system_clock::now().time_since_epoch());
----------------
walter-erquinigo wrote:

wouldn't it be better to use steady_clock? that's more stable for benchmarking

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


More information about the lldb-commits mailing list