PageSourceSearch

https://app.skipthedepot.com/static/js/profiler.e2b403b7.chunk.js

js skipthedepot.com collected 2026-10-01 14:33:37 UTC 5,391 bytes, 1 lines download raw bytes

1(this.webpackJsonpovercycle=this.webpackJsonpovercycle||[]).push([[3],{7933:function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_RUM_PROFILER_CONFIGURATION",(function(){return h})),n.d(t,"createRumProfiler",(function(){return w}));var s=n(42),r=n(15),o=n(68),i=n(24),a=n(18),c=n(31),l=n(54);function u(e){let t=0;for(const n of e)void 0!==n.stackId&&t++;return t}const p=new Map;function d(e){return p.get(e)}function f(e){for(const t of p.keys())t<e&&p.delete(t)}function m(e){let{rawRumEvent:t,startTime:n}=e;if(t.type!==l.g.LONG_TASK)return;!function(e,t){p.set(t,e)}(t.long_task.id,n)}var v=n(3),b=n(699);const g=(e,t,n,s)=>{const o=function(e,t,n,s){const o=t.tags,i=function(e,t,n){const s={application:{id:t}};n&&(s.session={id:n});const r=Array.from(new Set(e.views.map(e=>e.viewId)));r.length&&(s.view={id:r});const o=e.longTasks.map(e=>e.id).filter(e=>void 0!==e);o.length&&(s.long_task={id:o});return s}(e,n,s),a=function(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}(o);return Object(v.a)(Object(v.a)({},i),{},{attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:a.join(","),_dd:{clock_drift:Object(r.h)()}})}(e,t,n,s),i=function(e,t){const n=new Blob([JSON.stringify(e)],{type:"application/json"}),s=new FormData;return s.append("event",new Blob([JSON.stringify(t)],{type:"application/json"}),"event.json"),s.append("wall-time.json",n,"wall-time.json"),{data:s,bytesCount:0}}(e,o),a=t.build("fetch",i);return Object(b.b)("Sending profile to public profiling intake",{profilingIntakeURL:a,applicationId:n,sessionId:s}),fetch(a,{body:i.data,method:"POST"})},h={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function w(e,t,n,p){let v=arguments.length>4&&void 0!==arguments[4]?arguments[4]:h;const b=Object(l.D)(l.h.LONG_ANIMATION_FRAME);let w;const k=[];let O={state:"stopped"};function y(t){"running"!==O.state&&(w=t?{startClocks:t.startClocks,viewId:t.id,viewName:t.name}:void 0,k.push(Object(s.a)(e,window,"visibilitychange",R).stop,Object(s.a)(e,window,"beforeunload",D).stop),T())}async function j(){await M("stopped"),k.forEach(e=>e()),f(Object(r.f)().relative),p.set({status:"stopped",error_reason:void 0})}function I(n){if("running"===n.state)return{cleanupTasks:n.cleanupTasks,observer:n.observer};const s=[];let r;if(e.trackLongTasks){r=new PerformanceObserver(N),r.observe({entryTypes:[L()]});const e=t.subscribe(12,e=>{m(e)});s.push(()=>null===r||void 0===r?void 0:r.disconnect()),s.push(e.unsubscribe)}const o=t.subscribe(2,e=>{_({viewId:e.id,viewName:e.name,startClocks:e.startClocks})});return s.push(o.unsubscribe),{cleanupTasks:s,observer:r}}function T(){const e=Object(o.a)().Profiler;if(!e)throw p.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");S(O).catch(i.d);const{cleanupTasks:t,observer:n}=I(O);let s;try{s=new e({sampleInterval:v.sampleIntervalMs,maxBufferSize:Math.round(1.5*v.collectIntervalMs/v.sampleIntervalMs)})}catch(l){return void(l instanceof Error&&l.message.includes("disabled by Document Policy")?(a.e.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",l),p.set({status:"error",error_reason:"missing-document-policy-header"})):p.set({status:"error",error_reason:"unexpected-exception"}))}p.set({status:"running",error_reason:void 0}),O={state:"running",startClocks:Object(r.f)(),profiler:s,timeoutId:Object(c.d)(T,v.collectIntervalMs),longTasks:[],views:[],cleanupTasks:t,observer:n},_(w),s.addEventListener("samplebufferfull",E)}async function S(e){var t,n;if("running"!==e.state)return;P(null!==(n=null===(t=e.observer)||void 0===t?void 0:t.takeRecords())&&void 0!==n?n:[]),Object(c.b)(e.timeoutId),e.profiler.removeEventListener("samplebufferfull",E);const{startClocks:s,longTasks:o,views:a}=e,l=Object(r.f)();await e.profiler.stop().then(e=>{const t=Object(r.f)(),n=o.length>0,i=Object(r.j)(s.timeStamp,t.timeStamp)<v.minProfileDurationMs,c=u(e.s
1amples)<v.minNumberOfSamples;(n||!i&&!c)&&(C(Object.assign(e,{startClocks:s,endClocks:t,clocksOrigin:Object(r.g)(),longTasks:o,views:a,sampleInterval:v.sampleIntervalMs})),f(l.relative))}).catch(i.d)}async function M(e){"running"===O.state&&(O.cleanupTasks.forEach(e=>e()),await S(O),O={state:e})}function _(e){"running"===O.state&&e&&O.views.push(e)}function C(t){var s;const r=null===(s=n.findTrackedSession())||void 0===s?void 0:s.id;g(t,e.profilingEndpointBuilder,e.applicationId,r).catch(i.d)}function E(){T()}function N(e){P(e.getEntries())}function P(e){if("running"===O.state)for(const t of e){if(t.duration<v.sampleIntervalMs)continue;const e=Object(r.n)(t.startTime),n=d(e.relative);O.longTasks.push({id:n,duration:t.duration,entryType:t.entryType,startClocks:e})}}function R(){"hidden"===document.visibilityState&&"running"===O.state?M("paused").catch(i.d):"visible"===document.visibilityState&&"paused"===O.state&&T()}function D(){T()}function L(){return b?"long-animation-frame":"longtask"}function A(){return"stopped"===O.state}function U(){return"running"===O.state}
1function F(){return"paused"===O.state}return{start:y,stop:j,isStopped:A,isRunning:U,isPaused:F}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.