Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse and report async gaps #1

Merged
merged 3 commits into from
Aug 7, 2017
Merged

Conversation

yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Aug 2, 2017

@eseidelGoogle
Copy link

Isn't crashy able to tell us if this fixes things? :)

@yjbanov
Copy link
Contributor Author

yjbanov commented Aug 2, 2017

This PR does not fix missing async stack traces. It only fixes missing async gaps, should they appear in the stack. I just confirmed using crashy that release builds are indeed missing async stack traces. Will comment in the original issue.

frames.addAll(chain.traces[t].frames.map(encodeStackTraceFrame));
if (t < chain.traces.length - 1) {
frames.add(asynchronousGapFrameJson);
}
Copy link

Choose a reason for hiding this comment

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

Drop the curly brackets for one-line ifs.

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.

: new Chain.parse(stackTrace);

final List<Map<String, dynamic>> frames = <Map<String, dynamic>>[];
for (int t = 0; t < chain.traces.length; t += 1) {
Copy link

Choose a reason for hiding this comment

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

Why not t++?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's Flutter style.

@cbracken
Copy link

cbracken commented Aug 7, 2017

lgtm

@yjbanov yjbanov merged commit b2b5afc into getsentry:master Aug 7, 2017
@fzyzcjy fzyzcjy mentioned this pull request Mar 6, 2021
5 tasks
ueman pushed a commit that referenced this pull request Jul 19, 2021
Update isolate_error_integration.dart
@lauroboeni lauroboeni mentioned this pull request Sep 23, 2021
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants