提交 98deb4f2 编写于 作者: J John McCutchan 提交者: GitHub

Register _flutter.listViews in profile mode (#2963)

上级 2e684230
......@@ -100,13 +100,15 @@ static void AppendFlutterView(std::stringstream* stream,
} // namespace
void PlatformViewServiceProtocol::RegisterHook(bool running_precompiled_code) {
// Listing of FlutterViews.
Dart_RegisterRootServiceRequestCallback(kListViewsExtensionName, &ListViews,
nullptr);
// The following set of service protocol extensions require debug build
if (running_precompiled_code) {
return;
}
Dart_RegisterRootServiceRequestCallback(kRunInViewExtensionName, &RunInView,
nullptr);
Dart_RegisterRootServiceRequestCallback(kListViewsExtensionName, &ListViews,
nullptr);
}
const char* PlatformViewServiceProtocol::kRunInViewExtensionName =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册