Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}