blob: 08fa362b7db2eb48b5d565e219a04c9fa15979a7 [file] [log] [blame]
// 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/unwinder.h"
namespace base {
// Native unwinder implementation for Android, using libunwindstack.
// TODO(charliea): Implement this class.
// See:
class NativeUnwinderAndroid : public Unwinder {
NativeUnwinderAndroid() = default;
NativeUnwinderAndroid(const NativeUnwinderAndroid&) = delete;
NativeUnwinderAndroid& operator=(const NativeUnwinderAndroid&) = delete;
// Unwinder
bool CanUnwindFrom(const Frame* current_frame) const override;
UnwindResult TryUnwind(RegisterContext* thread_context,
uintptr_t stack_top,
ModuleCache* module_cache,
std::vector<Frame>* stack) const override;
} // namespace base