Closed Bug 1684925 Opened 5 years ago Closed 5 years ago

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)

All
Unspecified
defect

Tracking

()

RESOLVED DUPLICATE of bug 1685502
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.

Component: Applied Machine Learning → Audio/Video

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?

Flags: needinfo?(padenot)

huh I filed it twice.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(padenot)
Resolution: --- → DUPLICATE
No longer blocks: 1678373
You need to log in before you can comment on or make changes to this bug.