import { TraceStreamJson } from '@tracerbench/trace-event'; import type { ProtocolConnection, SpawnOptions } from 'chrome-debugging-client'; import type { RaceCancellation } from 'race-cancellation'; import type { Benchmark } from './run'; import type { UsingTracingCallback } from './util/run-trace'; export interface TraceBenchmarkOptions { spawnOptions: Partial; traceOptions: Partial; } export interface TraceOptions { captureDevtoolsTimeline: boolean; captureV8RuntimeStats: boolean; captureCpuProfile: boolean; captureFilmStrip: boolean; capturePaintProfile: boolean; additionalCategories: string[]; additionalTrialCategories: string[]; saveTraceAs: SaveTraceAsFn; } export declare type TraceFn = (usingTracing: UsingTracingCallback) => Promise; export declare type SampleTraceFn = (page: ProtocolConnection, i: number, isTrial: boolean, raceCancellation: RaceCancellation, trace: TraceFn) => Promise; export declare type SaveTraceAsFn = (group: string, iteration: number) => string; export default function createTraceBenchmark(group: string, sampleTrace: SampleTraceFn, options?: Partial): Benchmark; //# sourceMappingURL=create-trace-benchmark.d.ts.map