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

Print --perf timings in --watch mode #2065

Merged
merged 1 commit into from
Mar 22, 2018

Conversation

anandthakker
Copy link
Contributor

Also sorts the timing output by start time

@lukastaegert lukastaegert added this to the 0.57.1 milestone Mar 17, 2018
)
.forEach(label => {
newTimings[label] = timers[label].time;
});
Copy link
Member

Choose a reason for hiding this comment

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

Did this sorting ever change anything for you? As the entries are added to timers as soon as timeStart is called for the first time and Object.keys implicitly iterates keys in the order they are added, I do not think tracking start times or sorting the entries should be necessary. Or am I overlooking something here which is relevant for watch mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lukastaegert whoops, you're right -- sorry, I'd intended to revert this before pushing but forgot. Fixed now!

@lukastaegert lukastaegert removed this from the 0.57.1 milestone Mar 17, 2018
Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Looks good!

@lukastaegert lukastaegert merged commit 6913e39 into rollup:master Mar 22, 2018
@lukastaegert lukastaegert added this to the 0.58.0 milestone Mar 23, 2018
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.

None yet

2 participants