@3dsource/angular-unreal-module 0.0.146-dev.10 → 0.0.146-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(()=>{"use strict";if(window.__streamPerf)return;const t=1e3,e=window.__streamPerf={longTasks:[],supported:!1};try{new PerformanceObserver(o=>{for(const r of o.getEntries()){if(e.longTasks.length>=t)break;e.longTasks.push({start:Math.round(r.startTime),dur:Math.round(r.duration)})}}).observe({type:"longtask",buffered:!0}),e.supported=!0}catch{}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/angular-unreal-module",
3
- "version": "0.0.146-dev.10",
3
+ "version": "0.0.146-dev.11",
4
4
  "description": "Unreal module for connect with unreal engine stream",
5
5
  "keywords": [
6
6
  "3dsource",
@@ -298,6 +298,16 @@ interface ParkedStream {
298
298
  declare global {
299
299
  interface Window {
300
300
  __stream?: ParkedStream;
301
+ /** Main-thread long-task log collected by the optional `perf-longtask.js`
302
+ * head-script from page start. Read once at adoption to attribute the
303
+ * boot gap. `start`/`dur` are ms in the page `performance.now()` timebase. */
304
+ __streamPerf?: {
305
+ longTasks: {
306
+ start: number;
307
+ dur: number;
308
+ }[];
309
+ supported: boolean;
310
+ };
301
311
  }
302
312
  }
303
313