[LongTasks] Ship the buffered flag try 2
This change ships the buffered flag and implements the UseCounter to track how often the buffer becomes full. WindowPerformance is subscribed to observe longtasks upon construction, and only unsubscribed when the GC kicks in. This allows us to remove UpdateLongTaskInstrumentation() and should be performant assuming the counter confirms that most page loads do not fill up the buffer. First attempt: https://chromium-review.googlesource.com/c/chromium/src/+/1956075 Intent: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/cX5ahS7nCFw Bug: 1016815 Change-Id: I1003c6cf8fc34dbf9dd1cca5d60e33c8df841b91 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975994 Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Reviewed-by:Annie Sullivan <sullivan@chromium.org> Cr-Commit-Position: refs/heads/master@{#726519}
Showing
Please register or sign in to comment