Merge "Allow to move frames out of Unwinder."

This commit is contained in:
Treehugger Robot 2019-01-29 19:23:23 +00:00 committed by Gerrit Code Review
commit 9f5e9978c2

View file

@ -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);