dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
10 lines (9 loc) • 710 B
TypeScript
/** This debug utility is used to monitor open file descriptors used by file watchers (type checker, esbuild, chokidar). Too many might cause issues spawning more processes like executing functions */
/** Get current open file descriptor count for this process. (/dev/fd symlinks to the running process on unix systems) It won't work on Windows */
export declare function getFdCount(): number;
/** Log the current FD count with context. Warns if over 2000. */
export declare function logFdCount(context: string): void;
/** Start periodic FD count monitoring. */
export declare function startFdMonitoring(intervalMs?: number): void;
/** Stop FD monitoring. */
export declare function stopFdMonitoring(): void;