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

Unified Diff: base/debug/stack_trace.h

Issue 7766013: [Mac] Capture -dealloc backtrace to log with CrZombie messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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') | base/debug/stack_trace.cc » ('J')
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 02cb01f2c5bb30de5036648ecdb82f51b5c046f0..be68c75e26a2bc2050f42a1de52b109d763c8270 100644
--- a/base/debug/stack_trace.h
+++ b/base/debug/stack_trace.h
@@ -26,6 +26,10 @@ class BASE_EXPORT StackTrace {
// Creates a stacktrace from the current location.
StackTrace();
+ // Creates a stacktrace from an existing buffer gotten elsewhere.
+ // Useful for sharing PrintBacktrace().
+ StackTrace(const void* const* trace, int count);
Mark Mentovai 2011/08/27 00:29:02 Since this is part of the public interface now, yo
Scott Hess - ex-Googler 2011/08/27 05:15:40 OK, I'll document it as accepting an array of inst
+
#if defined(OS_WIN)
// Creates a stacktrace for an exception.
// Note: this function will throw an import not found (StackWalk64) exception
« no previous file with comments | « no previous file | base/debug/stack_trace.cc » ('j') | base/debug/stack_trace.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698