Is it possible to set custom CPU throttling in Chrome DevTools?

Custom values for Emulation.setCPUThrottlingRate can be set right in Chrome, but you need to open a Dev Tools window on the Dev Tools window to change the setting programatically.

  1. Open Dev Tools; make sure it is detached (open in its own window).
  2. Open Dev Tools again on the Dev Tools window from step 1 using the key combination Cmd-Opt-i (Mac) or Ctrl-Shift-i (Windows).
  3. Run the following in the Console tab:
    let Main = await import('./devtools-frontend/front_end/entrypoints/main/main.js');
    await Main.MainImpl.sendOverProtocol('Emulation.setCPUThrottlingRate', {rate: 40});
    

This example will throttle Chrome performance by 40x. NOTE: Passing 1 for rate turns off throttling.

The first Dev Tools window created in Step 1 may be re-docked after creating the second Dev Tools window.

Leave a Comment

techhipbettruvabetnorabahisbahis forumueduseduseduseduedueduedusedueduedus