mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(page): add missing docs to emulateCPUThrottling (#7630)
The text was taken from the protocol.
This commit is contained in:
parent
d0cb9436a3
commit
51229c12f1
@ -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> {
|
async emulateCPUThrottling(factor: number | null): Promise<void> {
|
||||||
assert(
|
assert(
|
||||||
factor === null || factor >= 1,
|
factor === null || factor >= 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user