@beincom/node-profile
Version:
``` npm install @beincom/node-profile # yarn add @beincom/node-profile ```
22 lines (21 loc) • 687 B
TypeScript
import { ProfileExporter } from '../exporters';
import { Profiler } from './profiler';
export interface ContinuousProfilerInput<TStartArgs> {
exporter: ProfileExporter;
flushIntervalMs: number;
profiler: Profiler<TStartArgs>;
startArgs: TStartArgs;
}
export declare class ContinuousProfiler<TStartArgs> {
readonly profiler: Profiler<TStartArgs>;
private readonly exporter;
private readonly flushIntervalMs;
readonly startArgs: TStartArgs;
private timer;
private lastExport;
constructor(input: ContinuousProfilerInput<TStartArgs>);
start(): void;
stop(): Promise<void>;
private scheduleProfilingRound;
private profilingRound;
}