[Lldb-commits] [lldb] [lldb-dap] Add timestamps to protocol logs (PR #93540)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue May 28 10:13:25 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());
----------------
labath wrote:
for a benchmark yes, but this is only a "benchmark" (with *very* large quotes). Like, I won't be using this during daylight savings switchover, and I don't think it's suitable for anything automated. And it's kinda nice it matches the time stamps for regular lldb logs (I literally copied this code from there).
https://github.com/llvm/llvm-project/pull/93540
More information about the lldb-commits
mailing list