summaryrefslogtreecommitdiffstats
path: root/chromium/base/profiler/stack_sampler_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/profiler/stack_sampler_win.cc')
-rw-r--r--chromium/base/profiler/stack_sampler_win.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/base/profiler/stack_sampler_win.cc b/chromium/base/profiler/stack_sampler_win.cc
index fb09fb79709..83307609aa1 100644
--- a/chromium/base/profiler/stack_sampler_win.cc
+++ b/chromium/base/profiler/stack_sampler_win.cc
@@ -5,8 +5,9 @@
#include "base/profiler/stack_sampler.h"
#include "base/profiler/native_unwinder_win.h"
+#include "base/profiler/stack_copier_suspend.h"
#include "base/profiler/stack_sampler_impl.h"
-#include "base/profiler/thread_delegate_win.h"
+#include "base/profiler/suspendable_thread_delegate_win.h"
#include "build/build_config.h"
namespace base {
@@ -18,7 +19,8 @@ std::unique_ptr<StackSampler> StackSampler::Create(
StackSamplerTestDelegate* test_delegate) {
#if defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM64)
return std::make_unique<StackSamplerImpl>(
- std::make_unique<ThreadDelegateWin>(thread_id),
+ std::make_unique<StackCopierSuspend>(
+ std::make_unique<SuspendableThreadDelegateWin>(thread_id)),
std::make_unique<NativeUnwinderWin>(), module_cache, test_delegate);
#else
return nullptr;