Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Refactor out record long tasks into a separate function #17

Merged
merged 3 commits into from
Mar 8, 2019

Conversation

draffensperger
Copy link
Contributor

This refactors out the functionality to collect long task timings into a separate module that stores the timings on a window object. That will be useful so that I can have the long task recording be in a JS bundle that should load right when the page starts, but have the rest of this code load asyncronously even after the load event fires.

@draffensperger
Copy link
Contributor Author

@mayurkale22 ping on this for a review, thansk!

Copy link
Member

@mayurkale22 mayurkale22 left a comment

Choose a reason for hiding this comment

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

Added minor comments, otherwise LGTM

navigationTiming?: PerformanceNavigationTimingExtended;
paintTimings: PerformancePaintTiming[];
resourceTimings: PerformanceResourceTimingExtended[];
longTasks: PerformanceLongTaskTiming[];
Copy link
Member

Choose a reason for hiding this comment

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

s/longTasks/longTasksTimings ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, changed to longTaskTimings.

@draffensperger draffensperger merged commit ce1f30e into master Mar 8, 2019
RenaultAI pushed a commit to RenaultAI/opencensus-web that referenced this pull request Nov 20, 2019
* Fix import path from gen-go files.

* Update opencensus-proto in vendor directory.

* Fix package name conflict.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants