Closed Bug 1854596 Opened 3 years ago Closed 1 year ago

Port over performance markers from playback to web codecs

Categories

(Core :: Audio/Video: Web Codecs, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: padenot, Assigned: chunmin)

References

(Blocks 1 open bug)

Details

Attachments

(8 files, 1 obsolete file)

So we can use the extension (https://github.com/padenot/fx-profiler-audio-cb) to assess web codecs's performance.

The severity field is not set for this bug.
:padenot, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(padenot)
Blocks: webcodecs
Severity: -- → S3
Flags: needinfo?(padenot)

This patch introduces the "DOM Worker" thread into profiler's media
preset. Additionally, those thread names are alphabetized.

Depends on D238713

Attachment #9466915 - Attachment is obsolete: true
Assignee: nobody → cchang
Attachment #9467005 - Attachment description: WIP: Bug 1854596 - Add worker to media profiler threads and alphabetize them → Bug 1854596 - Add worker to media profiler threads and alphabetize them
Status: NEW → ASSIGNED
Attachment #9467006 - Attachment description: WIP: Bug 1854596 - Add makers to WebCodecs Encoders → Bug 1854596 - Add makers to WebCodecs Encoders

Depends on D238714

Depends on D238879

Depends on D238880

Depends on D238881

Attachment #9467289 - Attachment description: Bug 1854596 - Add input's info to Decoder's markers → Bug 1854596 - Log info of decode request

Depends on D238882

This patch introduces a RAII-style profiler marker that automatically
starts tracking performance upon declaration and stops when
deconstructed. Additionally, it provides a manual stop method, giving
users full control over the tracking period.

Unlike passive timing based solely on the marker’s lifetime, this
approach allows developers to profile specific sections of code with
precision. This is particularly useful for accurately measuring
short-period execution, such as HW encoding or task dispatching, which
only take a few hundred or even just a few microseconds.

Depends on D239980

Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/46606d66ed1c Add worker to media profiler threads and alphabetize them r=profiler-reviewers,julienw https://hg.mozilla.org/integration/autoland/rev/deea9a263de6 Add makers to WebCodecs Encoders r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/38457654083f Add makers to WebCodecs Decoders r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/8ba02172eee8 Add ToString to EncodedVideoChunkData r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/c0a0231ce0af Add ToString to EncodedAudioChunkData r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/377f2484a381 Log info of decode request r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/9c0c76a7e749 Remove unnecessary annotation r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/ccce0bd331e0 Apply RAII-style markers in WebCodecs r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/db94f3c07e77 apply code formatting via Lando
Regressions: 2016497
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: