UNPKG

perfor-monitor

Version:

性能监控工具库

29 lines (28 loc) 746 B
import type { PerformanceMonitorOps } from "../types"; export declare class PerformanceMonitor { private readonly config; private metrics; private isStarted; isReported: boolean; private isStopped; private observers; private reportTimer; private lcpEntries; private inpEntries; private clsValue; private ttiResolve?; constructor(options?: PerformanceMonitorOps); private detectDeviceType; private detectNetworkType; private getDeviceMemory; private getCPUCores; private initPerfTiming; private logDebug; start(): void; private resetForNextRoute; report(): void; private checkWarnings; private renderReport; private sendReport; dispose(): void; }