@c4312/matcha
Version:
A caffeine driven, simple command line for benchmarking
7 lines (6 loc) • 318 B
TypeScript
import { Middleware } from '../runner';
import { IBenchmarkCase } from '../suite';
/**
* A middleware that runs a CPU profile benchmarks.
*/
export declare const cpuProfiler: (onResult: (bench: Readonly<IBenchmarkCase>, profile: object) => void | Promise<void>, include?: string | RegExp | undefined) => Middleware;