Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@sbaranov
Copy link
Contributor

/// 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 precompile this code offline.
///
/// The list has one symbol per line of the following format: `<namespace>,<class>,<symbol>\n`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one symbol per line implies it's text, but this returns bytes. What's the character encoding? UTF-8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's text, and I presume it's UTF-8 since it's fetched from Dart VM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc updated.

}

// TODO(sbaranov): This function will go away in subsequent PR, once the framework has caught up.
List<int> dumpCompilationTrace() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can simplify this to List<int> dumpCompilationTrace() => saveCompilationTrace();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might as well mark it @Deprecated('Use saveCompilationTrace() instead.') too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Hixie
Copy link
Contributor

Hixie commented Dec 20, 2018

We might want to rename this debugSaveCompilationTrace if it's only for debug and profile builds. Up to you.

Thanks so much for making the documentation detailed!

LGTM.

@sbaranov
Copy link
Contributor Author

This native works fine in dynamic release mode, so renaming it to debugSaveCompilationTrace wouldn't make sense. However, the part in framework that fetches the results of calling this function over service protocol can certainly be renamed debugSaveCompilationTrace.

@sbaranov sbaranov merged commit e859296 into flutter:master Dec 20, 2018
@sbaranov sbaranov deleted the docs branch December 20, 2018 20:17
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 20, 2018
sbaranov added a commit to flutter/flutter that referenced this pull request Dec 21, 2018
…5594)

* Switch over to the new name for compilation trace native function.

Also see: flutter/engine#7256

* rename

* roll the engine
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants