Skip to content

Commit

Permalink
Disable Dart's profiler in unoptimized builds (flutter#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmccutchan authored Nov 17, 2016
1 parent 2a13567 commit a335e25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/dart_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ static const char* kDartProfilingArgs[] = {
// default profile period to 100Hz. This number is suitable for older
// Raspberry Pi devices but quite low for current smartphones.
"--profile_period=1000",
// Disable Dart's built in profiler when building a debug build. This
// works around a race condition that would sometimes stop a crash's
// stack trace from being printed on Android.
#ifndef NDEBUG
"--no-profiler",
#endif
#if (WTF_OS_IOS || WTF_OS_MACOSX)
// On platforms where LLDB is the primary debugger, SIGPROF signals
// overwhelm LLDB.
Expand Down

0 comments on commit a335e25

Please sign in to comment.