- Seed reusable perf fixtures for server scenarios - Add perf provider adapter and web perf tests - Capture artifacts for virtualization and websocket runs
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
import type { PerfServerMetricSample } from "./artifact.ts";
|
|
|
|
export interface PerfServerSampler {
|
|
readonly start: (input: { readonly pid: number }) => Promise<void>;
|
|
readonly stop: () => Promise<ReadonlyArray<PerfServerMetricSample> | null>;
|
|
}
|
|
|
|
export class NoopServerSampler implements PerfServerSampler {
|
|
async start(_input: { readonly pid: number }): Promise<void> {}
|
|
|
|
async stop(): Promise<null> {
|
|
return null;
|
|
}
|
|
}
|