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

Unified Diff: runtime/vm/profiler.h

Issue 2813283002: Add --print_stacktrace_at_api_error. (Closed)
Patch Set: . Created 3 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
Index: runtime/vm/profiler.h
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h
index 1a44ed9f196ad37bf75c95c6b530fbd74eb07495..8972fe0ee42e9e2af3a21c6e2525a2db43f1dacc 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -59,7 +59,7 @@ class Profiler : public AllStatic {
static SampleBuffer* sample_buffer() { return sample_buffer_; }
static void DumpStackTrace(void* context);
- static void DumpStackTrace();
+ static void DumpStackTrace(bool for_crash = true);
static void SampleAllocation(Thread* thread, intptr_t cid);
static Sample* SampleNativeAllocation(intptr_t skip_count,
@@ -82,7 +82,7 @@ class Profiler : public AllStatic {
}
private:
- static void DumpStackTrace(uword sp, uword fp, uword pc);
+ static void DumpStackTrace(uword sp, uword fp, uword pc, bool for_crash);
// Does not walk the thread's stack.
static void SampleThreadSingleFrame(Thread* thread, uintptr_t pc);
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/profiler.cc » ('j') | runtime/vm/profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698