UNPKG

perfrunner-core

Version:

Automated UI performance test tool to measure performance changes for the web apps and sites

24 lines (23 loc) 776 B
import puppeteer from 'puppeteer'; import { NetworkSetup } from './perf-options'; declare type ProfileParams = { useCache: boolean; url: URL; throttlingRate: number; network: NetworkSetup; waitFor?: number | string; afterPageLoaded?: () => any; }; declare type BrowserLaunchOptions = { headless: boolean; timeout: number; ignoreDefaultArgs: boolean; args: string[] | undefined; product: 'chrome'; executablePath: string | undefined; }; export declare function runProfilingSession(browserLaunchOptions: BrowserLaunchOptions, profileOptions: ProfileParams, numberOfRuns: number, outputTracesTo: string): Promise<{ metrics: puppeteer.Metrics; performanceEntries: PerformanceEntry[]; }[]>; export {};