[Lldb-commits] [lldb] [lldb] Fix Intel PT plugin compile errors (PR #77252)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 8 08:03:19 PST 2024


================
@@ -85,6 +85,11 @@ double DecodedThread::NanosecondsRange::GetInterpolatedTime(
   return interpolate(next_range->nanos);
 }
 
+DecodedThread::TraceItemStorage::TraceItemStorage(
+    const TraceItemStorage &other) {
+  std::memcpy(this, &other, sizeof *this);
----------------
walter-erquinigo wrote:

I think that the copies might cause unnecessary slowdowns because traces can contain tens of millions of items. What about using a deque instead of a vector? Then you don't need resizes anymore.

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


More information about the lldb-commits mailing list