Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add throttleCPU on page #1095

Merged
merged 5 commits into from
Nov 14, 2023
Merged

Add throttleCPU on page #1095

merged 5 commits into from
Nov 14, 2023

Commits on Nov 14, 2023

  1. Add the new ThrottleCPU API

    This adds the bare bones implementation which includes all the changes
    to get it to work with the mapping layer and a new CPUProfile type.
    ankur22 committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    f06717b View commit details
    Browse the repository at this point in the history
  2. Add throttle cpu CDP implementation

    This is added to the frame session. Each page can contain multiple
    frame sessions, and each frame session contains a single session. The
    CDP throttle cpu API works at the session level, whereas the new API
    we're adding works at the page scope. This implementation is required
    here before wiring it into the page.
    ankur22 committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    5219cfa View commit details
    Browse the repository at this point in the history
  3. Add throttle cpu implementation in page

    This wires page up with its frame sessions, calling each frame session
    to action on the call to throttle the CPU.
    ankur22 committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    e395904 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d396169 View commit details
    Browse the repository at this point in the history
  5. Update the throttle example

    This update adds the use of throttleCPU into the example test script.
    ankur22 committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    27cd1ab View commit details
    Browse the repository at this point in the history