fix: Apply CPU throttling to secondary CDP session#2092
Merged
Conversation
0694532 to
c09351b
Compare
OrKoN
reviewed
May 20, 2026
OrKoN
reviewed
May 21, 2026
OrKoN
approved these changes
May 21, 2026
OrKoN
left a comment
Collaborator
There was a problem hiding this comment.
LGTM as a temporary solution but let's fix it upstream and file a task to clean up.
pull Bot
pushed a commit
to oogalieboogalie/chrome-devtools-mcp
that referenced
this pull request
May 26, 2026
🤖 I have created a release *beep* *boop* --- ## [1.1.0](ChromeDevTools/chrome-devtools-mcp@chrome-devtools-mcp-v1.0.1...chrome-devtools-mcp-v1.1.0) (2026-05-26) ### 🎉 Features * add extraHttpHeaders emulation to emulate tool ([ChromeDevTools#1176](ChromeDevTools#1176)) ([6992106](ChromeDevTools@6992106)) * created cursor plugin.json setting file with release auto versioning ([ChromeDevTools#2091](ChromeDevTools#2091)) ([10c8205](ChromeDevTools@10c8205)) ### 🛠️ Fixes * Apply CPU throttling to secondary CDP session ([ChromeDevTools#2092](ChromeDevTools#2092)) ([3ade962](ChromeDevTools@3ade962)) * **cli:** address pid file creation issues ([ChromeDevTools#2124](ChromeDevTools#2124)) ([1b51a52](ChromeDevTools@1b51a52)) * exit on stdin EOF and SIGTERM/SIGINT/SIGHUP, closing the browser cleanly ([ChromeDevTools#2117](ChromeDevTools#2117)) ([43b934c](ChromeDevTools@43b934c)) * Fix throttling info in performance trace output ([ChromeDevTools#2096](ChromeDevTools#2096)) ([57f32b0](ChromeDevTools@57f32b0)) * make pageId required ([ChromeDevTools#2084](ChromeDevTools#2084)) ([d751693](ChromeDevTools@d751693)), closes [ChromeDevTools#2052](ChromeDevTools#2052) * remove duplicate .mcp.json ([ChromeDevTools#2095](ChromeDevTools#2095)) ([dbf6ba9](ChromeDevTools@dbf6ba9)) * Set viewport after updating timeouts when setting emulation ([ChromeDevTools#2134](ChromeDevTools#2134)) ([0c3ac37](ChromeDevTools@0c3ac37)) * use pinned version for plugins ([ChromeDevTools#2135](ChromeDevTools#2135)) ([8ea5f09](ChromeDevTools@8ea5f09)) * use realpath for MCP roots validation ([ChromeDevTools#2127](ChromeDevTools#2127)) ([176eb69](ChromeDevTools@176eb69)) ### 📄 Documentation * align coding agent examples with Antigravity ([ChromeDevTools#2094](ChromeDevTools#2094)) ([ce31594](ChromeDevTools@ce31594)) * fix installation instructions for VS Code ([ChromeDevTools#2087](ChromeDevTools#2087)) ([9f47df3](ChromeDevTools@9f47df3)) ### 🏗️ Refactor * remove redundant validatePath calls ([ChromeDevTools#2136](ChromeDevTools#2136)) ([521c388](ChromeDevTools@521c388)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
samiyac
pushed a commit
to bcfmtolgahan/chrome-devtools-mcp
that referenced
this pull request
Jun 5, 2026
This addresses ChromeDevTools#1955 CPU throttling needs to be applied to both the primary puppeteer session and the secondary CDP session from the DevTools universe to have an effect. For network throttling this does not seem to be the case, I can see a slowdown with the current implementation which only applies the network throttling to the primary CDP session. I also had to increase the navigation timeout to prevent timeout errors.
samiyac
pushed a commit
to bcfmtolgahan/chrome-devtools-mcp
that referenced
this pull request
Jun 5, 2026
🤖 I have created a release *beep* *boop* --- ## [1.1.0](ChromeDevTools/chrome-devtools-mcp@chrome-devtools-mcp-v1.0.1...chrome-devtools-mcp-v1.1.0) (2026-05-26) ### 🎉 Features * add extraHttpHeaders emulation to emulate tool ([ChromeDevTools#1176](ChromeDevTools#1176)) ([6992106](ChromeDevTools@6992106)) * created cursor plugin.json setting file with release auto versioning ([ChromeDevTools#2091](ChromeDevTools#2091)) ([10c8205](ChromeDevTools@10c8205)) ### 🛠️ Fixes * Apply CPU throttling to secondary CDP session ([ChromeDevTools#2092](ChromeDevTools#2092)) ([3ade962](ChromeDevTools@3ade962)) * **cli:** address pid file creation issues ([ChromeDevTools#2124](ChromeDevTools#2124)) ([1b51a52](ChromeDevTools@1b51a52)) * exit on stdin EOF and SIGTERM/SIGINT/SIGHUP, closing the browser cleanly ([ChromeDevTools#2117](ChromeDevTools#2117)) ([43b934c](ChromeDevTools@43b934c)) * Fix throttling info in performance trace output ([ChromeDevTools#2096](ChromeDevTools#2096)) ([57f32b0](ChromeDevTools@57f32b0)) * make pageId required ([ChromeDevTools#2084](ChromeDevTools#2084)) ([d751693](ChromeDevTools@d751693)), closes [ChromeDevTools#2052](ChromeDevTools#2052) * remove duplicate .mcp.json ([ChromeDevTools#2095](ChromeDevTools#2095)) ([dbf6ba9](ChromeDevTools@dbf6ba9)) * Set viewport after updating timeouts when setting emulation ([ChromeDevTools#2134](ChromeDevTools#2134)) ([0c3ac37](ChromeDevTools@0c3ac37)) * use pinned version for plugins ([ChromeDevTools#2135](ChromeDevTools#2135)) ([8ea5f09](ChromeDevTools@8ea5f09)) * use realpath for MCP roots validation ([ChromeDevTools#2127](ChromeDevTools#2127)) ([176eb69](ChromeDevTools@176eb69)) ### 📄 Documentation * align coding agent examples with Antigravity ([ChromeDevTools#2094](ChromeDevTools#2094)) ([ce31594](ChromeDevTools@ce31594)) * fix installation instructions for VS Code ([ChromeDevTools#2087](ChromeDevTools#2087)) ([9f47df3](ChromeDevTools@9f47df3)) ### 🏗️ Refactor * remove redundant validatePath calls ([ChromeDevTools#2136](ChromeDevTools#2136)) ([521c388](ChromeDevTools@521c388)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This addresses #1955
CPU throttling needs to be applied to both the primary puppeteer session and the secondary CDP session from the DevTools universe to have an effect.
For network throttling this does not seem to be the case, I can see a slowdown with the current implementation which only applies the network throttling to the primary CDP session.
I also had to increase the navigation timeout to prevent timeout errors.