initialize method
Initialize the performance monitor with the given configuration
Implementation
Future<void> initialize({MonitorConfig? config}) async {
if (_isInitialized) {
debugPrint('PerformanceMonitor is already initialized');
return;
}
_config = config ?? const MonitorConfig();
_isInitialized = true;
// Initialize trackers
_initializeTrackers();
_startTrackers();
debugPrint('PerformanceMonitor initialized');
}