| 6 |
| 7 | #include "base/profiler/module_cache.h" |
| 8 | #include "base/profiler/native_unwinder.h" |
| 9 | #include "base/profiler/profile_builder.h" |
| 10 |
| 11 | namespace base { |
| 12 |
| 13 | bool NativeUnwinderAndroid::CanUnwindFrom(const Frame& current_frame) const { |
| 14 | return false; |
| 15 | } |
| 16 |
| 17 | UnwindResult NativeUnwinderAndroid::TryUnwind(RegisterContext* thread_context, |
| 18 | uintptr_t stack_top, |
| 19 | ModuleCache* module_cache, |
| 20 | std::vector<Frame>* stack) const { |
| 21 | return UnwindResult::ABORTED; |
| 22 | } |
| 23 |
| 24 | std::unique_ptr<Unwinder> CreateNativeUnwinder(ModuleCache* module_cache) { |
| 25 | return std::make_unique<NativeUnwinderAndroid>(); |
| 26 | } |
| 27 |
| 28 | } // namespace base |
| 29 |