UNPKG

@beincom/node-profile

Version:

``` npm install @beincom/node-profile # yarn add @beincom/node-profile ```

21 lines (20 loc) 716 B
import { SourceMapper } from '@datadog/pprof'; import { ProfileExport } from '../exporters'; import { Profiler } from './profiler'; export interface WallProfilerStartArgs { samplingDurationMs: number; samplingIntervalMicros: number; sourceMapper: SourceMapper | undefined; } export declare class WallProfiler implements Profiler<WallProfilerStartArgs> { private labels; private lastProfiledAt; private lastSamplingIntervalMicros; constructor(); getLabels(): Record<string, number | string>; profile(): ProfileExport; setLabels(labels: Record<string, number | string>): void; start(args: WallProfilerStartArgs): void; stop(): ProfileExport; private innerProfile; }