提交 b164edae 编写于 作者: C Chinmay Garde 提交者: GitHub

Revert "Only suppress the sampling profiler on Mac/iOS when the engine is in …" (#2814)

上级 104c7e21
......@@ -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) && !defined(NDEBUG))
#if (WTF_OS_IOS || WTF_OS_MACOSX)
// On platforms where LLDB is the primary debugger, SIGPROF signals
// overwhelm LLDB.
"--no-profiler",
......@@ -98,6 +98,10 @@ static const char* kDartPrecompilationArgs[] = {
"--precompilation",
};
static const char* kDartBackgroundCompilationArgs[] = {
"--background_compilation",
};
static const char* kDartCheckedModeArgs[] = {
"--enable_asserts",
"--enable_type_checks",
......@@ -510,6 +514,8 @@ 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.
先完成此消息的编辑!
想要评论请 注册