Skip to content

Commit

Permalink
Enable HTTP and socket profiling dart:io service extensions for Flutt…
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonyi authored Feb 27, 2020
1 parent 2914e4d commit 1e01b77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ui/dart_runtime_hooks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1e01b77

Please sign in to comment.