import*as i18n from"../i18n/i18n.js";import*as Root from"../root/root.js";import*as UI from"../ui/ui.js";const UIStrings={performanceMonitor:"Performance monitor",performance:"performance",systemMonitor:"system monitor",monitor:"monitor",activity:"activity",metrics:"metrics",showPerformanceMonitor:"Show Performance monitor"},str_=i18n.i18n.registerUIStrings("performance_monitor/performance_monitor-meta.ts",UIStrings),i18nLazyString=i18n.i18n.getLazilyComputedLocalizedString.bind(void 0,str_);let loadedPerformanceMonitorModule;async function loadPerformanceMonitorModule(){return loadedPerformanceMonitorModule||(await Root.Runtime.Runtime.instance().loadModulePromise("performance_monitor"),loadedPerformanceMonitorModule=await import("./performance_monitor.js")),loadedPerformanceMonitorModule}UI.ViewManager.registerViewExtension({location:"drawer-view",id:"performance.monitor",title:i18nLazyString(UIStrings.performanceMonitor),commandPrompt:i18nLazyString(UIStrings.showPerformanceMonitor),persistence:"closeable",order:100,loadView:async()=>(await loadPerformanceMonitorModule()).PerformanceMonitor.PerformanceMonitorImpl.instance(),tags:[i18nLazyString(UIStrings.performance),i18nLazyString(UIStrings.systemMonitor),i18nLazyString(UIStrings.monitor),i18nLazyString(UIStrings.activity),i18nLazyString(UIStrings.metrics)]});