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

[telemetry] Add telemetry to SbPlayerWriteSamples #4097

Open
wants to merge 1 commit into
base: 25.lts.1+
Choose a base branch
from

Conversation

borongc
Copy link
Contributor

@borongc borongc commented Sep 9, 2024

Adding additional Media Telemetry to cover SbPlayerWriteSamples.

The rough range of each function:

  1. When batched write is enabled (Media.MaxAudioSamplesPerWrite=256, [media] Limit max number of buffers to write with audio write ahead #3271):
    1. SbPlayerWriteSamples()/audio: 1us to 98us
    2. SbPlayerWriteSamples()/video: 1us to 3.4ms
  2. When batched write is disabled (Media.MaxAudioSamplesPerWrite=1, [media] Limit max number of buffers to write with audio write ahead #3271):
    1. SbPlayerWriteSamples()/audio: 9us to 65.47ms
    2. SbPlayerWriteSamples()/video: 8us to 28.07ms

b/303328238

@borongc borongc force-pushed the telemetry_sbplayer_write_samples branch 2 times, most recently from 75d2d7c to 9d21512 Compare September 10, 2024 15:18
cobalt/media/base/metrics_provider.cc Outdated Show resolved Hide resolved
tools/metrics/histograms/metadata/cobalt/histograms.xml Outdated Show resolved Hide resolved
@borongc borongc force-pushed the telemetry_sbplayer_write_samples branch from 9d21512 to eaecf86 Compare September 10, 2024 16:02
Adding additional Media Telemetry to cover SbPlayerWriteSamples.

The rough range of each function:
1. When batched write is enabled (Media.MaxAudioSamplesPerWrite=256):
  1. SbPlayerWriteSamples()/audio: 1us to 98us
  2. SbPlayerWriteSamples()/video: 1us to 3.4ms
2. When batched write is disabled (Media.MaxAudioSamplesPerWrite=1):
  1. SbPlayerWriteSamples()/audio: 9us to 65.47ms
  2. SbPlayerWriteSamples()/video: 8us to 28.07ms

b/303328238
@borongc borongc force-pushed the telemetry_sbplayer_write_samples branch from eaecf86 to 916f13a Compare September 23, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants