getPerformanceStats method

Map<String, dynamic> getPerformanceStats()

Get comprehensive performance statistics from all optimization components

Implementation

Map<String, dynamic> getPerformanceStats() {
  return {
    'astProcessor': _astProcessor.getCacheStats(),
    'streamingProcessor': _streamingProcessor.getMemoryStats(),
    'cacheStats': {
      'fileCacheSize': _fileCache.length,
      'contentHashCacheSize': _contentHashCache.length,
      'outputCacheSize': _outputCache.length,
    },
    'timestamp': DateTime.now().toIso8601String(),
  };
}