Merge "Allow to move frames out of Unwinder."
This commit is contained in:
commit
9f5e9978c2
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ class Unwinder {
|
|||
|
||||
const std::vector<FrameData>& frames() { return frames_; }
|
||||
|
||||
std::vector<FrameData> ConsumeFrames() {
|
||||
std::vector<FrameData> frames = std::move(frames_);
|
||||
frames_.clear();
|
||||
return frames;
|
||||
}
|
||||
|
||||
std::string FormatFrame(size_t frame_num);
|
||||
static std::string FormatFrame(const FrameData& frame, bool is32bit);
|
||||
|
||||
|
|
Loading…
Reference in a new issue