Index: base/debug/stack_trace.h |
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h |
index 02cb01f2c5bb30de5036648ecdb82f51b5c046f0..0cb96545eb7db54c5f43d79f719f63b11eb114f2 100644 |
--- a/base/debug/stack_trace.h |
+++ b/base/debug/stack_trace.h |
@@ -26,6 +26,11 @@ class BASE_EXPORT StackTrace { |
// Creates a stacktrace from the current location. |
StackTrace(); |
+ // Creates a stacktrace from an existing array of instruction |
+ // pointers (such as returned by Addresses()). |count| will be |
+ // trimmed to |kMaxTraces|. |
+ StackTrace(const void* const* trace, int count); |
+ |
#if defined(OS_WIN) |
// Creates a stacktrace for an exception. |
// Note: this function will throw an import not found (StackWalk64) exception |