Files
t3code/test/perf/support/serverSampler.ts
Julius Marminge 5804697e92 Add perf regression test harnesses
- Seed reusable perf fixtures for server scenarios
- Add perf provider adapter and web perf tests
- Capture artifacts for virtualization and websocket runs
2026-04-01 13:59:21 -07:00

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;
}
}