Index: base/debug/stack_trace.h |
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h |
index 02cb01f2c5bb30de5036648ecdb82f51b5c046f0..a524616c8c72acd0306950a40c1d3b76af4a1aed 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, size_t count); |
+ |
#if defined(OS_WIN) |
// Creates a stacktrace for an exception. |
// Note: this function will throw an import not found (StackWalk64) exception |