import*as i18n from"../i18n/i18n.js";import*as Root from"../root/root.js";import*as UI from"../ui/ui.js";const UIStrings={profiler:"Profiler",showProfiler:"Show Profiler"},str_=i18n.i18n.registerUIStrings("js_profiler/js_profiler-meta.ts",UIStrings),i18nLazyString=i18n.i18n.getLazilyComputedLocalizedString.bind(void 0,str_);let loadedProfilerModule;async function loadProfilerModule(){return loadedProfilerModule||(await Root.Runtime.Runtime.instance().loadModulePromise("profiler"),loadedProfilerModule=await import("../profiler/profiler.js")),loadedProfilerModule}UI.ViewManager.registerViewExtension({location:"panel",id:"js_profiler",title:i18nLazyString(UIStrings.profiler),commandPrompt:i18nLazyString(UIStrings.showProfiler),order:65,loadView:async()=>(await loadProfilerModule()).ProfilesPanel.JSProfilerPanel.instance()});