#ifndef BASE_PROFILER_STACK_COPIER_SUSPEND_H_
#define BASE_PROFILER_STACK_COPIER_SUSPEND_H_
#include <memory>
#include "base/base_export.h"
#include "base/profiler/stack_copier.h"
namespace base {
class SuspendableThreadDelegate;
class BASE_EXPORT StackCopierSuspend : public StackCopier {
public:
StackCopierSuspend(
std::unique_ptr<SuspendableThreadDelegate> thread_delegate);
~StackCopierSuspend() override;
bool CopyStack(StackBuffer* stack_buffer,
uintptr_t* stack_top,
TimeTicks* timestamp,
RegisterContext* thread_context,
Delegate* delegate) override;
protected:
std::vector<uintptr_t*> GetRegistersToRewrite(
RegisterContext* thread_context) override;
private:
std::unique_ptr<SuspendableThreadDelegate> thread_delegate_;
};
}
#endif