Index: base/debug/stack_trace.h |
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h |
index d4918d60654b808719ebcfdda6be74d43174f75d..ba1937fe5e6f1702e2b0a177727d99997b3cf3d8 100644 |
--- a/base/debug/stack_trace.h |
+++ b/base/debug/stack_trace.h |
@@ -53,9 +53,13 @@ class BASE_EXPORT StackTrace { |
// Creates a stacktrace from the current location. |
StackTrace(); |
+ // Creates a stacktrace from the current location, of up to |count| entries. |
+ // |count| will be limited to at most |kMaxTraces|. |
+ explicit StackTrace(size_t count); |
+ |
// Creates a stacktrace from an existing array of instruction |
// pointers (such as returned by Addresses()). |count| will be |
- // trimmed to |kMaxTraces|. |
+ // limited to at most |kMaxTraces|. |
StackTrace(const void* const* trace, size_t count); |
#if defined(OS_WIN) |
@@ -68,8 +72,6 @@ class BASE_EXPORT StackTrace { |
// Copying and assignment are allowed with the default functions. |
- ~StackTrace(); |
- |
// Gets an array of instruction pointer values. |*count| will be set to the |
// number of elements in the returned array. |
const void* const* Addresses(size_t* count) const; |