Edit

Share via


Throttling

In the Throttling page of Customize and control DevTools (Customize and control DevTools icon) > Settings, you can:

  • Calibrate CPU throttling presets to approximate the typical performance of low- and mid-tier mobile devices.

  • Set up custom throttling profiles. You can use your custom throttling profiles to test custom connection speeds in the Network tool.

The Throttling tab in DevTools Settings

Calibrate CPU throttling presets

To calibrate CPU throttling presets:

  1. Go to a webpage, such as the Peer connection WebRTC sample.

  2. Right-click the webpage, and then select Inspect.

    DevTools opens.

  3. Select the Performance tool.

  4. Click the Capture settings (Capture settings icon) button, and then in the CPU throttling dropdown menu, select Calibrate:

    The CPU throttling dropdown menu before calibrating

    Before calibration, the Low-tier mobile and Mid-tier mobile menuitems are dimmed, and don't have numbers next to them.

    Or, in the Environment settings section, select the CPU throttling dropdown menu, and then select Calibrate:

    The CPU throttling dropdown menu before calibrating, in Environment settings

    The DevTools Settings > Throttling page opens.

  5. In the CPU throttling presets section, click the Calibrate button, and then click the Continue button.

    After about 5 seconds, DevTools navigates away from the current webpage and then reloads it.

    The CPU throttling presets section shows the throttling rates that you can apply to your device, to get an idea of how your page performs on low- and mid-tier mobile devices:

    Calibrated rates next for low- and mid-tier mobile devices

  6. In DevTools Settings, click the Close (Close icon) button.

Use your calibrated CPU throttling presets

To use your calibrated CPU throttling rates:

  1. In DevTools, select the Performance tool.

  2. Click the Capture settings (Capture settings icon) button, and then use the CPU throttling dropdown menu.

    Or, in the Environment settings section, use the CPU throttling dropdown menu.

    The calibrated factors are displayed next to the Low-tier mobile and Mid-tier mobile menuitems:

    Calibrated rates next in drop-down menus in the Performance panel

Set up a custom network throttling profile

To add a custom network throttling profile:

  1. Go to a webpage, such as the Peer connection WebRTC sample.

  2. Right-click the webpage, and then select Inspect.

    DevTools opens.

  3. In DevTools, click the Customize and control DevTools (Customize and control DevTools icon) button, and then select Settings (Settings icon).

    The DevTools Settings page opens.

  4. On the left, select the Throttling settings page.

  5. In the Network throttling profiles section, click the Add profile button.

  6. Specify the following optional parameter values for the new entry:

    Creating a new profile in the Throttling tab

    • Profile Name.
    • Download and Upload speeds in Kbps.
    • Latency in milliseconds.

    Packet-related parameters:

    • Packet Loss in percent.
    • Packet Queue Length as a number.
    • Packet Reordering flag, on or off.
  7. Click the Add button to save the new profile.

  8. In DevTools Settings, click the Close (Close icon) button.

You can now select the custom profile from the Throttling dropdown menu in the Network tool.

By using packet-related parameters, you can throttle WebRTC applications without using third-party software. You can try these parameters in the Peer connection WebRTC sample:

Peer connection sample

Edit or remove a custom network throttling profile

To edit or remove an existing profile:

  1. In DevTools, in the Network tool, select the Throttling dropdown menu, and then in the Custom section, select Add.

    Or, select Customize and control DevTools (Customize and control DevTools icon) > Settings (Settings icon) > Throttling.

    The DevTools Settings > Throttling page opens.

  2. In the Network throttling profiles section, hover over a profile, and then click the Edit (Edit icon) or Remove (Remove icon) button.

Note

Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License. The original page is found here and is authored by Sofia Emelianova.

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.