diff options
Diffstat (limited to 'chromium/base/profiler/stack_copier_signal.cc')
-rw-r--r-- | chromium/base/profiler/stack_copier_signal.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/base/profiler/stack_copier_signal.cc b/chromium/base/profiler/stack_copier_signal.cc new file mode 100644 index 00000000000..ae858701252 --- /dev/null +++ b/chromium/base/profiler/stack_copier_signal.cc @@ -0,0 +1,28 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/profiler/stack_copier_signal.h" + +#include "base/profiler/metadata_recorder.h" +#include "base/profiler/sample_metadata.h" +#include "base/profiler/stack_buffer.h" +#include "base/profiler/suspendable_thread_delegate.h" + +namespace base { + +StackCopierSignal::StackCopierSignal( + std::unique_ptr<ThreadDelegate> thread_delegate) + : thread_delegate_(std::move(thread_delegate)) {} + +StackCopierSignal::~StackCopierSignal() = default; + +bool StackCopierSignal::CopyStack(StackBuffer* stack_buffer, + uintptr_t* stack_top, + ProfileBuilder* profile_builder, + RegisterContext* thread_context) { + // TODO(wittman): Implement signal-based stack copying. + return false; +} + +} // namespace base |