Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: base/debug/stack_trace.h

Issue 8206015: Add StackTrace::ToString(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/debug/stack_trace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/stack_trace.h
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h
index a524616c8c72acd0306950a40c1d3b76af4a1aed..65421b232b31bd045dfc72d4bec49a6e3b856928 100644
--- a/base/debug/stack_trace.h
+++ b/base/debug/stack_trace.h
@@ -7,6 +7,7 @@
#pragma once
#include <iosfwd>
+#include <string>
#include "base/base_export.h"
#include "build/build_config.h"
@@ -52,6 +53,9 @@ class BASE_EXPORT StackTrace {
// Resolves backtrace to symbols and write to stream.
void OutputToStream(std::ostream* os) const;
+ // Resolves backtrace to symbols and returns as string.
+ std::string ToString() const;
+
private:
// From http://msdn.microsoft.com/en-us/library/bb204633.aspx,
// the sum of FramesToSkip and FramesToCapture must be less than 63,
« no previous file with comments | « no previous file | base/debug/stack_trace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698