[Lldb-commits] [PATCH] D123281: [trace][intel pt] Create a common accessor for live and postmortem data

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 7 15:57:02 PDT 2022


wallace added inline comments.


================
Comment at: lldb/include/lldb/Target/Trace.h:386-396
+  llvm::DenseMap<lldb::tid_t, std::unordered_map<std::string, size_t>>
       m_live_thread_data;
+
   /// data kind -> size
   std::unordered_map<std::string, size_t> m_live_process_data;
+  /// \}
+
----------------
jj10306 wrote:
> Why not change all the maps to DenseMap while we're at it?
interestingly DenseMap doesn't know how to work with std::strings as key, only with const char *. Maybe they want to force a comparison by pointer and not by string content.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123281/new/

https://reviews.llvm.org/D123281



More information about the lldb-commits mailing list