diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 19:33:04 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 19:33:04 +0000 |
commit | f01ae9817b5cdc3200248892f8f741bd47d2e416 (patch) | |
tree | 6502dd5cc8685d7dc6ade7f6ce2ba1cf1c57c1ad /base/debug/stack_trace.h | |
parent | acac679958c9fa4b4efd23cdd49d85afdcb618bd (diff) | |
download | chromium_src-f01ae9817b5cdc3200248892f8f741bd47d2e416.zip chromium_src-f01ae9817b5cdc3200248892f8f741bd47d2e416.tar.gz chromium_src-f01ae9817b5cdc3200248892f8f741bd47d2e416.tar.bz2 |
[Mac] Capture -dealloc backtrace to log with CrZombie messages.
Logs a subset of the stack backtrace from the point of -dealloc into a
breakpad key to help debug messages to CrZombie objects. This
productionizes the basic approach taken to debug a few recent zombie
object crashes.
BUG=none
TEST=monitor crash server.
Review URL: http://codereview.chromium.org/7766013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug/stack_trace.h')
-rw-r--r-- | base/debug/stack_trace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h index 02cb01f..a524616 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 |