From 51229c12f152032678f23b2a1592d62753ac340a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Tue, 5 Oct 2021 04:49:30 -0300 Subject: [PATCH] docs(page): add missing docs to emulateCPUThrottling (#7630) The text was taken from the protocol. --- src/common/Page.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/Page.ts b/src/common/Page.ts index c5f6e3e0c03..d1ca8bb931a 100644 --- a/src/common/Page.ts +++ b/src/common/Page.ts @@ -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 { assert( factor === null || factor >= 1,