[go: nahoru, domu]

Skip to content

Commit

Permalink
Remove unimplemented API call saveCompilationTrace (flutter#43656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixie committed Jul 14, 2023
1 parent 601f0c1 commit c5841c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
23 changes: 0 additions & 23 deletions lib/ui/natives.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,29 +85,6 @@ Future<developer.ServiceExtensionResponse> _getImpellerEnabled(

const bool _kReleaseMode = bool.fromEnvironment('dart.vm.product');

/// Returns runtime Dart compilation trace as a UTF-8 encoded memory buffer.
///
/// The buffer contains a list of symbols compiled by the Dart JIT at runtime up
/// to the point when this function was called. This list can be saved to a text
/// file and passed to tools such as `flutter build` or Dart `gen_snapshot` in
/// order to pre-compile this code offline.
///
/// The list has one symbol per line of the following format:
/// `<namespace>,<class>,<symbol>\n`.
///
/// Here are some examples:
///
/// ```csv
/// dart:core,Duration,get:inMilliseconds
/// package:flutter/src/widgets/binding.dart,::,runApp
/// file:///.../my_app.dart,::,main
/// ```
///
/// This function is only effective in debug and dynamic modes, and will throw in AOT mode.
List<int> saveCompilationTrace() {
throw UnimplementedError();
}

@Native<Void Function(Handle)>(symbol: 'DartRuntimeHooks::ScheduleMicrotask')
external void _scheduleMicrotask(void Function() callback);

Expand Down
7 changes: 0 additions & 7 deletions lib/web_ui/lib/natives.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ class DartPluginRegistrant {
'`ensureInitialized` is not implemented on the web.');
}
}

List<int> saveCompilationTrace() {
assert(
throw UnimplementedError('saveCompilationTrace is not implemented on the web.'),
);
throw UnimplementedError();
}

0 comments on commit c5841c5

Please sign in to comment.