Implement a timestamp class that can measure a duration without suspend on all platforms, switch media telemetry users to it
Categories
(Core :: Audio/Video, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | affected |
People
(Reporter: padenot, Assigned: padenot)
Details
Using TimeStamp
in telemetry-related code is problematic because it might or might not include the time the device is suspended. This is the cause of differences in quite a few probes between platforms.
Writing a simple class that can measure a duration that doesn't count the time the device is suspended, and then switching to this new class for telemetry consumers that measure long durations (or maybe all of them?) is necessary, to be able to then exploit the data with confidence.
It should have the exact same API as TimeStamp
so that it's drop-in. It turns out we can use TimeStamp as a backend for Linux and macOS, but we need something new for Windows. It might be easier than the TimeStamp
class because maybe we don't need to measure very small durations. The previous sentence might be wrong.
I'll start by doing that for dom/media
and then we can extend this.
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Hey Paul, should this be a task rather than a defect? Either way, would you assign a priority (and if defect, severity) for triage purposes?
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
huh I filed it twice.
Description
•