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

Unified Diff: third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h

Issue 15418002: Record Chrome trace events in tcmalloc heap profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still no dots Created 7 years, 7 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
Index: third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h
diff --git a/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h b/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h
index abbe0a923ccc8b1171b36a03f085e2a3961033ac..60b63aad3018b4b0d07f9ee0f68872ffa972f559 100644
--- a/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h
+++ b/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h
@@ -290,6 +290,17 @@ static void **NextStackFrame(void **old_sp, const void *uc) {
// int skip_count: how many stack pointers to skip before storing in result
// void* ucp: a ucontext_t* (GetStack{Trace,Frames}WithContext only)
+//typedef int PseudoStackFunction(void** stack);
+//extern PseudoStackFunction* pseudo_stack_function;
+//int GET_STACK_TRACE_OR_FRAMES {
+// int n = pseudo_stack_function(result);
+//#if IS_STACK_FRAMES
+// // TODO(jamescook): Can we just skip this?
+// memset(sizes, 0, n * sizeof(void*)); // Report unknown size.
+//#endif
+// return n;
+//}
+
int GET_STACK_TRACE_OR_FRAMES {
void **sp;
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __llvm__

Powered by Google App Engine
This is Rietveld 408576698