import{h as a}from"./index-7t_wvw7g.mjs";import"worker_threads";import"./constants-DED7MIJj.mjs";import"path";import"os";import"url";import"fs";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.2.860"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="77388dcb-67df-4c3e-8759-8d0ae2cdd194",e._sentryDebugIdIdentifier="sentry-dbid-77388dcb-67df-4c3e-8759-8d0ae2cdd194")})()}catch{}const f=[10*60*1e3,1*60*60*1e3,6*60*60*1e3,24*60*60*1e3],u=[...f];async function d(e){const n=~~(e.getProcessUptime()/60),r=await e.getProcessMemoryInfo();if(r){const i=~~(r.private/1024),c=~~(r.shared/1024);globalThis.rs&&globalThis.rs.setHighMemoryUsage(i>4e3),e.sendEvent([{event:"Renderer Memory",properties:{hwAccel:a,uptimeMinutes:n,privateMb:i,sharedMb:c}}])}const s=u.shift();s&&setTimeout(()=>d(e),s)}const l=e=>{const t=e.getProcessCpuUsage();if(!t)return;const n="percentCPUUsage"in t?t.percentCPUUsage:0,r="idleWakeupsPerSecond"in t?t.idleWakeupsPerSecond:0;n!==0&&e.sendEvent([{event:"Renderer Performance",properties:{uptimeMinutes:~~(e.getProcessUptime()/60),arch:process.arch,idleWakeupsPerSecond:r,percentCPUUsage:n}}])};let o=!1;function U(e){o||e&&(setTimeout(()=>d(e),60*1e3),setInterval(()=>l(e),5*60*1e3),o=!0)}export{f as REPORT_INTERVALS_MS,U as registerSystemStatsReporting};
//# sourceMappingURL=system-stats-DIGFNPck.mjs.map
