[wpt-sync] Sync PR 36662 - compute pressure: Manage sampleRate changes
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(Not tracked)
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 36662 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36662
Details from upstream follow.
Arnaud Mandy <arnaud.mandy@intel.com> wrote:
compute pressure: Manage sampleRate changes
This patch implements the platform collector's
sample interval changes based on observer's registration.
EachpressureObserver
has its ownsampleRate
; the
pressureObserverManager
is now collecting the sampleRate each
observer, and try to find the most suitable common sample rate that
will fulfill all observers requirement.
This common sample rate is then converted to sample interval and
passed down to the platform collector.
The platform collector timer is reprogrammed every time the sample
interval is changed.Bug: 1371373
Change-Id: Ie7a491d2bd6b1f2d2dc017246a702c8c8ba483b8
Reviewed-on: https://chromium-review.googlesource.com/3955443
WPT-Export-Revision: ba71b06a2570ee28406af01fdfa5f2b8dddaae3c
Assignee | ||
Updated•2 years ago
|
Description
•