import{Settings as e}from"../common/common.js";import{i18n as t}from"../i18n/i18n.js";import{Runtime as o}from"../root/root.js";import{ActionRegistration as i}from"../ui/ui.js";const a={flamechartMouseWheelAction:"Flamechart mouse wheel action:",scroll:"Scroll",zoom:"Zoom",liveMemoryAllocationAnnotations:"Live memory allocation annotations",showLiveMemoryAllocation:"Show live memory allocation annotations",hideLiveMemoryAllocation:"Hide live memory allocation annotations",collectGarbage:"Collect garbage"},n=t.registerUIStrings("perf_ui/perf_ui-meta.ts",a),l=t.getLazilyComputedLocalizedString.bind(void 0,n);let r;i.registerActionExtension({actionId:"components.collect-garbage",category:i.ActionCategory.PERFORMANCE,title:l(a.collectGarbage),iconClass:"largeicon-trash-bin",loadActionDelegate:async()=>(await async function(){return r||(await o.Runtime.instance().loadModulePromise("perf_ui"),r=await import("./perf_ui.js")),r}()).GCActionDelegate.GCActionDelegate.instance()}),e.registerSettingExtension({category:e.SettingCategoryObject.PERFORMANCE,title:l(a.flamechartMouseWheelAction),settingName:"flamechartMouseWheelAction",settingType:e.SettingTypeObject.ENUM,defaultValue:"zoom",options:[{title:l(a.scroll),text:l(a.scroll),value:"scroll"},{title:l(a.zoom),text:l(a.zoom),value:"zoom"}]}),e.registerSettingExtension({category:e.SettingCategoryObject.MEMORY,experiment:o.ExperimentName.LIVE_HEAP_PROFILE,title:l(a.liveMemoryAllocationAnnotations),settingName:"memoryLiveHeapProfile",settingType:e.SettingTypeObject.BOOLEAN,defaultValue:!1,options:[{value:!0,title:l(a.showLiveMemoryAllocation)},{value:!1,title:l(a.hideLiveMemoryAllocation)}]});export{a as UIStrings};
