New issue
Advanced search Search tips

Issue 690722 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Add UMA for key request generation time

Project Member Reported by xhw...@chromium.org, Feb 10 2017

Issue description

Generating key request may take a lot of work in the CDM. We should add a UMA to monitor the time spent by the CDM to generate the key request.

Note that the real key request is in a session message sent asynchronously, so it's a little bit hard to keep track of it.

However, the spec does require that the GenerateRequest() promise be resolved and returned after the key request is generated and the message containing the request queued in a task [1]. So we could just record the time from GenerateRequest() is called, to when the promise is resolved.

We could also only report this for the first session created.

[1] https://w3c.github.io/encrypted-media/#dom-mediakeysession-generaterequest
 

Comment 1 by xhw...@chromium.org, Feb 10 2017

Cc: -xhw...@chromium.org
Owner: xhw...@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 2 by bugdroid1@chromium.org, Feb 11 2017

Comment 3 by xhw...@chromium.org, Feb 11 2017

Status: Fixed (was: Assigned)

Sign in to add a comment