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

docs: add primer on viewing the timing data #6393

Merged
merged 1 commit into from
Oct 25, 2018
Merged

Conversation

paulirish
Copy link
Member

@paulirish paulirish commented Oct 25, 2018

brendan asked for docs when merging #3745 so here we go

example trace that one can generate now.

Also, fixed a small issue. Deduping by name turned out to be an issue since we call loadBlank and loadPage multiple times. Thus we lost data.

Now we dedupe by startTime, which has sub-millisecond precision, so we're good.

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

cool cool cool

@@ -175,7 +175,8 @@ class Runner {
const timingEntriesKeyValues = [
...timingEntriesFromArtifacts,
...timingEntriesFromRunner,
].map(entry => /** @type {[string, PerformanceEntry]} */ ([entry.name, entry]));
// As entries can share a name, dedupe based on the startTime timestamp
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

Nice!

@brendankenny brendankenny merged commit 5a14deb into master Oct 25, 2018
@brendankenny brendankenny deleted the timingdocs branch October 25, 2018 23:22
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