Closed Bug 1683372 Opened 5 years ago Closed 5 years ago

`MEDIA_CONTROL_PLATFORM_USAGE` doesn't work as my expectation

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: alwu, Assigned: alwu)

References

Details

We would only set MEDIA_CONTROL_PLATFORM_USAGE at most twice per session time,
and I use Set method [1] so the second one would overwrite the first one to keep the final result.

I suppose using Set would only make probe's value be either 0 or 1, instead of keeping adding the value like that [2].

[1] https://searchfox.org/mozilla-central/rev/58e955b8005b4845c42e874a6b9aa5b223ef0d82/dom/media/mediacontrol/MediaControlService.cpp#148-149
[2] https://mzl.la/2KAGzPt

Hi, Chris,
For each client, I would like to see its probe value being either 0 or 1, not an accumulated value. Do you know what's wrong happening here? Did I use the scalar wrongly? How can I change the probe in order to collect the result I described above?
Thank you so much.

Flags: needinfo?(chutten)

telemetry.mozilla.org's Measurement Dashboard doesn't know how you're encoding values, so all it does is count the number of pings that have values in each of the buckets over the range you specify and show that. It's all it can do.

To do what you're after you'll need to do some custom analysis. Maybe something like this: https://sql.telemetry.mozilla.org/queries/77061/source

If you'd like more realtime assistance, people on Slack#data-help or #telemetry:mozilla.org on Matrix should be able to help you (if anyone's around. 'Tis the season).

Flags: needinfo?(chutten)

Ah, thank you so much! Close this bug because the probe data is actually correct, we just need to do some custom analysis.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.