Disable Dart's profiler in unoptimized builds (flutter/engine#3234)

This commit is contained in:
John McCutchan
2016-11-17 10:14:53 -08:00
committed by GitHub
parent c693907f61
commit c49eb9a680

View File

@@ -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.