Skip to content

Conversation

iskakaushik
Copy link
Contributor

No description provided.

@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@fluttergithubbot fluttergithubbot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Apr 27, 2020
@iskakaushik iskakaushik requested a review from liyuqian April 27, 2020 20:39
Copy link
Contributor

@flar flar left a comment

Choose a reason for hiding this comment

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

LGTM, I'll be curious to see what impact this has on our benchmark dashboard.

@iskakaushik iskakaushik merged commit 2651681 into flutter:master Apr 27, 2020
@iskakaushik iskakaushik deleted the sort-timeline-events-before-summarizing branch April 27, 2020 21:03
.toList();

timelineEvents.sort((TimelineEvent e1, TimelineEvent e2) {
return e1.timestampMicros.compareTo(e2.timestampMicros);
Copy link
Contributor

Choose a reason for hiding this comment

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

I just tried running this on my favorite benchmark and got a null exception here. Apparently not all events have timestamps and so you need to do something special to compare events with null timestamps (null should be sorted as less than everything else, maybe?)

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like all of the events in the timeline I was processing that had null timestamps were the "thread_name" events at the beginning of the log.

iskakaushik pushed a commit to iskakaushik/flutter that referenced this pull request Apr 27, 2020
iskakaushik added a commit that referenced this pull request Apr 27, 2020
…55769)

This reverts commit 2651681.

Co-authored-by: Kaushik Iska <kaushikiska@google.com>
@iskakaushik
Copy link
Contributor Author

reverted at #55769, will make nulls behave well and re-land.

@flar
Copy link
Contributor

flar commented Apr 27, 2020

Sorry about the premature approval. :(

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants