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

Unified Diff: src/isolate.h

Issue 1104353003: Add flag to print stack-trace after n allocations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: trace stack for allocations Created 5 years, 8 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 | « src/heap/heap-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index b9f842e7670a306066f30e3f221196ff77e102bf..37d832d25d36783d2db482f1aff22407a041b622 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -712,9 +712,11 @@ class Isolate {
int frame_limit,
StackTrace::StackTraceOptions options);
+ enum PrintStackMode { kPrintStackConcise, kPrintStackVerbose };
void PrintCurrentStackTrace(FILE* out);
- void PrintStack(StringStream* accumulator);
- void PrintStack(FILE* out);
+ void PrintStack(StringStream* accumulator,
+ PrintStackMode mode = kPrintStackVerbose);
+ void PrintStack(FILE* out, PrintStackMode mode = kPrintStackVerbose);
Handle<String> StackTraceString();
NO_INLINE(void PushStackTraceAndDie(unsigned int magic,
Object* object,
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698