Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Seek Latency Telemetry #2735

Merged
merged 6 commits into from
Apr 1, 2024
Merged

Conversation

at-ninja
Copy link
Contributor

Added the ability to track the latency of WebMediaPlayer actions to the existing MediaMetricsProvider class, and instrumented Seek as the first action.

Added basic unit tests for the new code.

b/329439521

Change-Id: Icbbfd0da148e48d2137da7662b91e6e2d52de590

Added the ability to track the latency of `WebMediaPlayer` actions to the existing `MediaMetricsProvider` class, and instrumented `Seek` as the first action.

Added basic unit tests for the new code.

b/329439521

Change-Id: Icbbfd0da148e48d2137da7662b91e6e2d52de590
Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.79%. Comparing base (02dc352) to head (81d9e33).
Report is 3 commits behind head on main.

❗ Current head 81d9e33 differs from pull request most recent head d5ffbd7. Consider uploading reports for the commit d5ffbd7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2735      +/-   ##
==========================================
- Coverage   59.80%   59.79%   -0.02%     
==========================================
  Files        1831     1831              
  Lines       88482    88482              
==========================================
- Hits        52918    52907      -11     
- Misses      35564    35575      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sideb0ard sideb0ard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks clean, tests look good.

my only potential worry is any performance impact of calling IsActionCurrentlyTracked for every OnPipelineSeek, depending on how often seek is called.
base::small_map looks efficient though, so let's see!

lgtm if histogram data looks good for Joel

Change-Id: I4486d0fa7bcdc31ba12a549040e886044c53eeef
Change-Id: Ife49b0a7d40b809caf0f389a4230038dc8f6042e
@at-ninja at-ninja requested a review from joeltine April 1, 2024 21:02
Change-Id: If3ef45925049a43ee190e1bd65bdeae638d5d526
Change-Id: I4b1dc77751492846342a1c724f39f1b259d0eaae
@at-ninja at-ninja enabled auto-merge (squash) April 1, 2024 22:59
@at-ninja at-ninja merged commit a712047 into youtube:main Apr 1, 2024
338 of 340 checks passed
@at-ninja at-ninja added the cp-24.lts.1+ Cherry Pick to the 24.lts.1+ branch label Apr 2, 2024
cobalt-github-releaser-bot pushed a commit that referenced this pull request Apr 2, 2024
Added the ability to track the latency of `WebMediaPlayer` actions to
the existing `MediaMetricsProvider` class, and instrumented `Seek` as
the first action.

Added basic unit tests for the new code.

b/329439521

Change-Id: Icbbfd0da148e48d2137da7662b91e6e2d52de590
(cherry picked from commit a712047)
at-ninja added a commit that referenced this pull request Apr 2, 2024
Refer to the original PR: #2735

Added the ability to track the latency of `WebMediaPlayer` actions to
the existing `MediaMetricsProvider` class, and instrumented `Seek` as
the first action.

Added basic unit tests for the new code.

b/329439521

Change-Id: Icbbfd0da148e48d2137da7662b91e6e2d52de590

---------

Co-authored-by: Drew Thomas <async@google.com>
@at-ninja at-ninja deleted the seek-latency-metrics branch April 3, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-24.lts.1+ Cherry Pick to the 24.lts.1+ branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants