Closed Bug 1844614 Opened 2 years ago Closed 2 years ago

Add telemetry for Linux Hardware Decoding

Categories

(Core :: Graphics, task)

Unspecified
Linux
task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mkaply, Unassigned)

Details

Attachments

(2 files)

Now that hardware decoding is enabled on Intel GPUs for Linux, it would be useful to have telemetry data on how it's used on release.

I am curious why this probe isn't sufficient -
https://sql.telemetry.mozilla.org/queries/82393/source?p_platform=Linux#204116

https://searchfox.org/mozilla-central/search?q=hardware_decoding&path=&case=false&regexp=false

Martin, maybe take a look at the source of the data here and see if it provides what you're looking for?

Flags: needinfo?(stransky)

If you don't have access to that particular query but have access to t.m.o, the query is -

-- SCALARS_MEDIA.VIDEO_HARDWARE_DECODING_SUPPORT
-- payload.processes.content.keyed_scalars.media_video_hardware_decoding_support

-- break this down by platform

with dataset as (
select
count(distinct client_id) as count,
case
when hardware_decoding_supported.key = 'video/avc' then 'h264'
else replace(hardware_decoding_supported.key, 'video/', '')
end as codec,
case
when hardware_decoding_supported.value = true
then 'hardware'
when hardware_decoding_supported.value = false
then 'software'
end as supported
from
telemetry.main
cross join UNNEST(payload.processes.content.keyed_scalars.media_video_hardware_decoding_support)
as hardware_decoding_supported
where
DATE(submission_timestamp) >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
and normalized_channel = 'release'
and normalized_os = '{{platform}}'
and sample_id = 42
and payload.processes.content.keyed_scalars.media_video_hardware_decoding_support is not null
group by codec, supported
order by count desc
)

select * from dataset where count > 10

I don't have permissions to log in to sql.telemetry.mozilla.org.

it gives me:

Sorry, you do not have permission to access sql.telemetry.mozilla.org. Please contact the application owner for access. If unsure who that may be, please contact ServiceDesk@mozilla.com for support.

Flags: needinfo?(stransky)

Ok, sorry about that. What kind of stats are you looking for? The query I posted displays a percentage graph comparing hardware and software decoding use. I'll post it here. I'll also try to get a historical trend graph going.

Attachment #9345594 - Attachment description: trans over time → hardware use trend over time
Attachment #9345409 - Attachment description: newplot.png → hardware / software decoding support percentages for linux

Cool Thanks. Looks like 20% od H264 decode is done on HW.

Martin, does this existing telemetry address your questions? If so, should we close this report?

Flags: needinfo?(stransky)

(In reply to Bob Hood [:bhood] from comment #7)

Martin, does this existing telemetry address your questions? If so, should we close this report?

Yes, works for me. Thanks.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(stransky)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: