@ngx-runtime-monitor/core
v0.1.1
Published
Core runtime monitor engine, registries, lifecycle hooks, and leak detection engine for Angular.
Maintainers
Readme
@ngx-runtime-monitor/core
The core runtime monitoring and leak detection engine for Angular applications.
Features
- Lifecycle Tracking: Integrates with Angular component/service lifecycles.
- Leak Detection Engine: Evaluates active resources against destroyed component owners.
- Rules Detection:
LR001: Abandoned interval timers.LR002: Lingering DOM event listeners.LR003: Unsubscribed RxJS subscriptions.LR004: Monotonic subscriber growth.LR005: Undisconnected Resize/Intersection/Mutation observers.LR006-LR011: Unclosed WebSockets, EventSources, Workers, unrevoked Object URLs, dangling HTTP requests.
- Memory Evidence: Snapshot capture and delta comparison.
Installation
npm install @ngx-runtime-monitor/coreQuick Start
import {
provideRuntimeMonitor,
withLeakDetection,
} from '@ngx-runtime-monitor/core';
export const appConfig: ApplicationConfig = {
providers: [
provideRuntimeMonitor(
withLeakDetection()
),
],
};License
MIT
