| 6 | #define BASE_PROFILER_NATIVE_UNWINDER_ANDROID_H_ |
| 7 |
| 8 | #include "base/profiler/unwinder.h" |
| 9 |
| 10 | namespace base { |
| 11 |
| 12 | // Native unwinder implementation for Android, using libunwindstack. |
| 13 | // |
| 14 | // TODO(charliea): Implement this class. |
| 15 | // See: https://crbug.com/989102 |
| 16 | class NativeUnwinderAndroid : public Unwinder { |
| 17 | public: |
| 18 | NativeUnwinderAndroid() = default; |
| 19 |
| 20 | NativeUnwinderAndroid(const NativeUnwinderAndroid&) = delete; |
| 21 | NativeUnwinderAndroid& operator=(const NativeUnwinderAndroid&) = delete; |
| 22 |
| 23 | // Unwinder |
| 24 | bool CanUnwindFrom(const Frame& current_frame) const override; |
| 25 | UnwindResult TryUnwind(RegisterContext* thread_context, |
| 26 | uintptr_t stack_top, |
| 27 | ModuleCache* module_cache, |
| 28 | std::vector<Frame>* stack) const override; |
| 29 | }; |
| 30 |
| 31 | } // namespace base |
| 32 |
| 33 | #endif // BASE_PROFILER_NATIVE_UNWINDER_ANDROID_H_ |
| 34 |