@beincom/node-profile
Version:
``` npm install @beincom/node-profile # yarn add @beincom/node-profile ```
24 lines (23 loc) • 836 B
TypeScript
import { SourceMapper } from '@datadog/pprof';
export interface PyroscopeConfig {
appName?: string | undefined;
authToken?: string | undefined;
flushIntervalMs?: number | undefined;
heap?: PyroscopeHeapConfig | undefined;
serverAddress?: string | undefined;
tags?: TagList | undefined;
wall?: PyroscopeWallConfig | undefined;
sourceMapper?: SourceMapper | undefined;
basicAuthUser?: string | undefined;
basicAuthPassword?: string | undefined;
tenantID?: string | undefined;
}
export interface PyroscopeWallConfig {
samplingDurationMs?: number | undefined;
samplingIntervalMicros?: number | undefined;
}
export interface PyroscopeHeapConfig {
samplingIntervalBytes?: number | undefined;
stackDepth?: number | undefined;
}
export type TagList = Record<string, number | string>;