/fx-profiler-audio-cb

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

fx-profiler-audio-cb

The extension icon, a stopwatch with a eighth note musical notation symbol instead of the clock hands

This extension is used to analysis the media statistics from the Firefox profiler.

  • Marker Visualization

    This feature enables statistical visualization for predefined markers used in various contexts. To view statistical visualizations for any marker, another extension, Fouineur, is your best choice.

    • Real-time audio analysis Real-time Audio Callback Data
    • Decoding performance analysis Request Decode Analysis
  • Playback Restore :

    This feature allows users to restore playback to a specific point in time, making it easier to analyze and debug media playback issues.

    Playback Restore

How To Use

Installation

  1. Download the latest .xpi from the dist directory. This is signed by https://addons.mozilla.org.
  2. Go to about:addons and click the gear icon, then select Install Add-on From File.
  3. Select the downloaded .xpi file and install it

Marker Visualization

  1. Open any profile captured under Media Playback preset [1]
  2. Find the tab which contains the media you want to analyze
  3. For real-time audio, select AudioIPC Client Callback thread.

    For decoding performance, select MediaDecoderStateMachine, MediaSupervisor threads.

  4. Click the extension icon and select Marker Visualization

Note, if you want to analysis the performance of video decoder, you need to choose MediaPDecoder thread in either GPU or RDD process.

Playback Restore

  1. Open any profile captured under Media Playback preset [1]
  2. Find the tab which contains the media you want to analyze
  3. Keep only main thread selected, which mean only selecting the tab Select main thread
  4. Click the extension icon and select Playback Restore

[1] Instruction of how to capture a media profile

Development

Install webext-run, and run web-ext run in the top level directory.

License

MPL 2.0