提交 3a4e0a0c 编写于 作者: R Ryan Macnak 提交者: GitHub

Only suppress the sampling profiler on Mac/iOS when the engine is in debug...

Only suppress the sampling profiler on Mac/iOS when the engine is in debug mode. Makes the profiler available when using 'flutter run --profile' for iOS. (#2804)

Don't pass the --background-compilation vm flag as it has been enabled by default for quite awhile now.
上级 f738deb0
......@@ -83,7 +83,7 @@ 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",
#if (WTF_OS_IOS || WTF_OS_MACOSX)
#if ((WTF_OS_IOS || WTF_OS_MACOSX) && !defined(NDEBUG))
// On platforms where LLDB is the primary debugger, SIGPROF signals
// overwhelm LLDB.
"--no-profiler",
......@@ -98,10 +98,6 @@ static const char* kDartPrecompilationArgs[] = {
"--precompilation",
};
static const char* kDartBackgroundCompilationArgs[] = {
"--background_compilation",
};
static const char* kDartCheckedModeArgs[] = {
"--enable_asserts",
"--enable_type_checks",
......@@ -514,8 +510,6 @@ void InitDartVM() {
args.append(kDartProfilingArgs, arraysize(kDartProfilingArgs));
args.append(kDartMirrorsArgs, arraysize(kDartMirrorsArgs));
args.append(kDartBackgroundCompilationArgs,
arraysize(kDartBackgroundCompilationArgs));
if (IsRunningPrecompiledCode())
args.append(kDartPrecompilationArgs, arraysize(kDartPrecompilationArgs));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册