• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5part of ui;
6
7/// Returns runtime Dart compilation trace as a UTF-8 encoded memory buffer.
8///
9/// The buffer contains a list of symbols compiled by the Dart JIT at runtime up to the point
10/// when this function was called. This list can be saved to a text file and passed to tools
11/// such as `flutter build` or Dart `gen_snapshot` in order to precompile this code offline.
12///
13/// The list has one symbol per line of the following format: `<namespace>,<class>,<symbol>\n`.
14/// Here are some examples:
15///
16/// ```
17/// dart:core,Duration,get:inMilliseconds
18/// package:flutter/src/widgets/binding.dart,::,runApp
19/// file:///.../my_app.dart,::,main
20/// ```
21///
22/// This function is only effective in debug and dynamic modes, and will throw in AOT mode.
23List<int> saveCompilationTrace() {
24  throw UnimplementedError();
25}
26