UNPKG

@dnlup/doc

Version:

Get usage and health data about your Node.js process

36 lines (34 loc) 1.07 kB
import { Sampler, SamplerOptions, InstancesDiagnosticChannelHookData, SamplesDiagnosticChannelHookData } from './types/sampler' import errors from './types/errors' import { CPUMetric } from './types/cpuMetric' import { EventLoopDelayMetric } from './types/eventLoopDelayMetric' import { ResourceUsageMetric } from './types/resourceUsageMetric' import { EventLoopUtilizationMetric } from './types/eventLoopUtilizationMetric' import { GCEntry, GCAggregatedEntry, GCMetric } from './types/gcMetric' import * as constants from './types/constants' declare namespace doc { export { errors } export { Sampler, SamplerOptions, InstancesDiagnosticChannelHookData, SamplesDiagnosticChannelHookData, CPUMetric, EventLoopDelayMetric, ResourceUsageMetric, EventLoopUtilizationMetric, GCEntry, GCAggregatedEntry, GCMetric, constants } export const createSampler: (options?: SamplerOptions) => Sampler export { createSampler as default } } declare function doc(options?: doc.SamplerOptions): doc.Sampler export = doc