Skip to content

Commit 68972e5

Browse files
committed
BETTER
1 parent d8dac3a commit 68972e5

File tree

2 files changed

+196
-88
lines changed

2 files changed

+196
-88
lines changed

Modules/_remote_debugging/_remote_debugging.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ typedef struct {
265265
PVOID win_process_buffer;
266266
ULONG win_process_buffer_size;
267267
#endif
268-
// No persistent libunwind state needed - using simple PTRACE_ATTACH/DETACH per sample
268+
#ifdef HAVE_LIBUNWIND
269+
// Persistent libunwind address space - created once, reused for all samples
270+
// This is critical for performance: creating/destroying addr_space per sample is 3x slower
271+
unw_addr_space_t native_addr_space;
272+
#endif
269273
} RemoteUnwinderObject;
270274

271275
#define RemoteUnwinder_CAST(op) ((RemoteUnwinderObject *)(op))

0 commit comments

Comments
 (0)