docs(page): add missing docs to emulateCPUThrottling (#7630)

The text was taken from the protocol.
This commit is contained in:
Darío Kondratiuk 2021-10-05 04:49:30 -03:00 committed by GitHub
parent d0cb9436a3
commit 51229c12f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2179,6 +2179,10 @@ export class Page extends EventEmitter {
});
}
/**
* Enables CPU throttling to emulate slow CPUs.
* @param factor - slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
*/
async emulateCPUThrottling(factor: number | null): Promise<void> {
assert(
factor === null || factor >= 1,