{"repo":"dnlup/doc","free":true,"listed":false,"github":"https://github.com/dnlup/doc","clone":"git clone https://github.com/dnlup/doc.git","description":"Get usage and health data about your Node.js process.","language":"JavaScript","stars":20,"topics":["nodejs","process","cpu","eventloop","memory","metrics","garbage-collector"],"license":"ISC","category":"analytics","readme_excerpt":"doc Get usage and health data about your Node.js process. doc is a small module that helps you collect health metrics about your Node.js process. It does that by using only the API available on Node itself (no native dependencies). It doesn't have any ties with an APM platform, so you are free to use anything you want for that purpose. Its API lets you access both computed and raw values, where possible. - Installation latest stable version latest development version - Usage Importing with CommonJS Importing with ESM Note - Enable/disable metrics collection - Garbage collection - Active handles Examples - API [ doc([options]) ](#docoptions) Class: doc.Sampler + [new doc.Sampler([options]) ](#new-docsampleroptions) + Event: ' sample ' + sampler.start() + sampler.stop() + sampler.cpu + sampler.resourceUsage + sampler.eventLoopDelay + sampler.eventLoopUtilization + sampler.gc + sampler.activeHandles + sampler.memory Class: CpuMetric + cpuMetric.usage + cpuMetric.raw Class: ResourceUsageMetric + resourceUsage.cpu + resourceUsage.raw Class: EventLoopDelayMetric + eventLoopDelay.computed + eventLoopDelay.raw + eventLoopDelay.compute(raw) Class: EventLoopUtilizationMetric + eventLoopUtilization.idle + eventLoopUtilization.active + eventLoopUtilization.utilization + eventLoopUtilization.raw Class: GCMetric + new GCMetric(options) gcMetric.pause + gcMetric.major + gcMetric.minor + gcMetric.incremental + gcMetric.weakCb Class: GCEntry + new GCEntry() + gcEntry.totalDuration + gcEntry.t","default_branch":null,"files":null,"tree":[],"storefront":"/r/dnlup","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dnlup/doc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}