ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
91 lines • 2.73 kB
TypeScript
/**
* Performance Coordinator
* Consolidates all performance monitoring, metrics collection, and optimization capabilities
* Extracted from LocalDebugEngine as part of coordinator pattern implementation
*/
export interface PerformanceMetrics {
networkMetrics: any;
javascriptProfile: any;
flutterMetrics?: any;
nextjsScore?: any;
timestamp: number;
}
export interface PerformanceBaseline {
metrics: PerformanceMetrics;
capturedAt: number;
sessionId: string;
url: string;
}
export interface PerformanceComparison {
current: PerformanceMetrics;
baseline: PerformanceBaseline;
improvements: string[];
regressions: string[];
overallScore: number;
}
export declare class PerformanceCoordinator {
private networkCoordinator;
private jsAnalysisCoordinator;
private flutterAnalysisCoordinator;
private nextjsEnhancedEngine?;
private baselines;
private metricsHistory;
constructor(networkCoordinator: any, jsAnalysisCoordinator: any, flutterAnalysisCoordinator: any, nextjsEnhancedEngine?: any | undefined);
/**
* Get comprehensive network performance metrics
*/
getNetworkMetrics(): any;
/**
* Get JavaScript performance profiling data
*/
getJavaScriptPerformanceProfile(): Promise<any>;
/**
* Get Flutter performance metrics
*/
getFlutterPerformance(): Promise<any>;
/**
* Get detailed Flutter performance metrics
*/
getFlutterPerformanceMetrics(): Promise<any>;
/**
* Get Next.js performance score
*/
getNextJSPerformanceScore(): Promise<any>;
/**
* Get Flutter performance baseline for comparison
*/
getFlutterPerformanceBaseline(): Promise<any>;
/**
* Collect comprehensive performance metrics from all sources
*/
collectPerformanceMetrics(): Promise<PerformanceMetrics>;
/**
* Set performance baseline for comparison
*/
setPerformanceBaseline(sessionId: string, url: string): Promise<PerformanceBaseline>;
/**
* Compare current performance with baseline
*/
compareWithBaseline(sessionId: string): Promise<PerformanceComparison | null>;
/**
* Generate performance optimization recommendations
*/
getOptimizationRecommendations(): Promise<string[]>;
/**
* Get performance trend analysis
*/
getPerformanceTrends(): any;
/**
* Clear performance history and baselines
*/
reset(): void;
/**
* Update Next.js enhanced engine when it becomes available
*/
setNextJSEngine(nextjsEnhancedEngine: any): void;
/**
* Cleanup resources
*/
cleanup(): void;
}
//# sourceMappingURL=performance-coordinator.d.ts.map