Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

Description

Fixes #48725

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jan 23, 2020
@flutter flutter deleted a comment from fluttergithubbot Jan 24, 2020
@jonahwilliams
Copy link
Contributor Author

Based on my current understanding of the breaking change policy, this is not a breaking change.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Did you spot-check some device lab tests?

// Optimization arguments.
genSnapshotArgs.addAll(<String>[
// Faster async/await
'--no-causal-async-stacks',
Copy link
Member

Choose a reason for hiding this comment

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

We should also update the flags to gen_snapshot in fuchsia/fuchsia_build.dart and dart_component.gni in the Fuchsia tree to ensure we're doing the same thing everywhere. @iskakaushik

'--incremental',
'--target=$targetModel',
'-Ddart.developer.causal_async_stacks=$causalAsyncStacks',
'-Ddart.developer.causal_async_stacks=${buildMode == BuildMode.debug}',
Copy link
Member

Choose a reason for hiding this comment

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

This leads me to notice that we need to unify the flags used here with the flags used in fuchsia_kernel_compiler.dart either by keeping them in sync manually or by eliminating fuchsia_kernel_compiler.dart by merging its functionality into this file.

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 looks like the kernel_compiler and frontend_server support a slightly different set of flags and have slightly different output behavior. Is there any reason we can't standardize on the frontend_server instead?

Copy link
Member

@zanderso zanderso Jan 24, 2020

Choose a reason for hiding this comment

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

Ahh right. Functionality of the Fuchsia kernel compiler would need to be integrated into the frontend_server, so there's probably not much we can do right now other than manually try to keep the flags in-sync where possible.

@iskakaushik iskakaushik self-requested a review January 24, 2020 17:42
@jonahwilliams
Copy link
Contributor Author

@zanderso no I haven't checked any. I'm not aware of any stack trace parsing tests

@iskakaushik
Copy link
Contributor

There is a stacktrace parsing test in topaz that i'm aware of, i've notified the owner to watch out for changes: fxb/44622, we might need to do a manual roll.

@jonahwilliams
Copy link
Contributor Author

This would only effect "release/profile" mode stack traces, so depending on how that test is running it might not be bothered

@jonahwilliams
Copy link
Contributor Author

Looks like gen_snapshot invocation for fuchsia already had --no-causal-async-stacks applied


final List<String> command = <String>[
genSnapshot,
'--no_causal_async_stacks',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if this matters...

Copy link
Member

Choose a reason for hiding this comment

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

If dashes work for other flags, they should also work for these flags.

@fluttergithubbot fluttergithubbot merged commit 3478232 into flutter:master Jan 27, 2020
@jonahwilliams jonahwilliams deleted the apply_stack_dropping branch January 27, 2020 19:06
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable lazy async stack traces via tool feature

5 participants