@beincom/node-profile
Version:
``` npm install @beincom/node-profile # yarn add @beincom/node-profile ```
7 lines (6 loc) • 505 B
TypeScript
/// <reference types="node" />
import { Request, RequestHandler } from 'express';
import { Profiler } from '../profilers';
export declare const collectProfile: <TStartArgs>(profiler: Profiler<TStartArgs>) => Promise<Buffer>;
export declare const collectProfileAfterMs: <TStartArgs>(profiler: Profiler<TStartArgs>, args: TStartArgs, delayMs: number) => Promise<Buffer>;
export declare const profileExpressHandler: (profileKind: string, useCaseHandler: (req: Request) => Promise<Buffer>) => RequestHandler;