UNPKG

@re-shell/cli

Version:

Full-stack development platform uniting microservices and microfrontends. Build complete applications with .NET (ASP.NET Core Web API, Minimal API), Java (Spring Boot, Quarkus, Micronaut, Vert.x), Rust (Actix-Web, Warp, Rocket, Axum), Python (FastAPI, Dja

64 lines (63 loc) 1.48 kB
interface PerformanceMark { name: string; timestamp: number; duration?: number; memory?: NodeJS.MemoryUsage; } interface PerformanceReport { startTime: number; endTime: number; totalDuration: number; marks: PerformanceMark[]; command: string; version: string; platform: string; nodeVersion: string; } export declare class PerformanceProfiler { private static instance; private marks; private startTime; private enabled; private reportPath; private constructor(); static getInstance(): PerformanceProfiler; /** * Start profiling */ start(command?: string): void; /** * Mark a performance checkpoint */ mark(name: string, metadata?: any): void; /** * Measure duration between two marks */ measure(name: string, startMark: string, endMark?: string): void; /** * End profiling and generate report */ end(): PerformanceReport | null; /** * Save performance report */ private saveReport; /** * Print performance report to console */ private printReport; /** * Get average startup time from recent reports */ getAverageStartupTime(): number | null; /** * Analyze performance bottlenecks */ analyzeBottlenecks(): { phase: string; duration: number; percentage: number; }[]; } export declare const profiler: PerformanceProfiler; export {};