未验证 提交 1e01b775 编写于 作者: B Ben Konyi 提交者: GitHub

Enable HTTP and socket profiling dart:io service extensions for Flutter (#16800)

上级 2914e4dd
......@@ -142,6 +142,14 @@ static void InitDartIO(Dart_Handle builtin_library,
Dart_Handle result =
Dart_SetField(platform_type, ToDart("_localeClosure"), locale_closure);
PropagateIfError(result);
// Register dart:io service extensions used for network profiling.
Dart_Handle network_profiling_type =
Dart_GetType(io_lib, ToDart("_NetworkProfiling"), 0, nullptr);
PropagateIfError(network_profiling_type);
result = Dart_Invoke(network_profiling_type,
ToDart("_registerServiceExtension"), 0, nullptr);
PropagateIfError(result);
}
void DartRuntimeHooks::Install(bool is_ui_isolate,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册