@player-devtools/profiler-plugin 0.13.1--canary.16.915

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.
Files changed (38) hide show
  1. package/dist/ProfilerDevtoolsPlugin.native.js +2237 -0
  2. package/dist/ProfilerDevtoolsPlugin.native.js.map +1 -0
  3. package/dist/cjs/index.cjs +346 -0
  4. package/dist/cjs/index.cjs.map +1 -0
  5. package/dist/index.legacy-esm.js +325 -0
  6. package/dist/index.mjs +325 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +39 -0
  9. package/src/__tests__/__snapshots__/plugin.test.ts.snap +1484 -0
  10. package/src/__tests__/addProfilerInterceptorsToHooks.test.ts +60 -0
  11. package/src/__tests__/plugin.test.ts +168 -0
  12. package/src/addProfilerInterceptorsToHooks.ts +89 -0
  13. package/src/constants.ts +7 -0
  14. package/src/helpers/__tests__/hasHooks.test.ts +55 -0
  15. package/src/helpers/__tests__/isMatchingPaths.test.ts +24 -0
  16. package/src/helpers/__tests__/isRecordType.test.ts +31 -0
  17. package/src/helpers/__tests__/profiler.test.ts +282 -0
  18. package/src/helpers/__tests__/transformProfilerData.test.ts +151 -0
  19. package/src/helpers/hasHooks.ts +9 -0
  20. package/src/helpers/index.ts +5 -0
  21. package/src/helpers/isMatchingPaths.ts +5 -0
  22. package/src/helpers/isRecordType.ts +2 -0
  23. package/src/helpers/profiler.ts +114 -0
  24. package/src/helpers/transformProfilerData.ts +51 -0
  25. package/src/index.ts +1 -0
  26. package/src/plugin.ts +185 -0
  27. package/src/types.ts +16 -0
  28. package/types/addProfilerInterceptorsToHooks.d.ts +4 -0
  29. package/types/constants.d.ts +2 -0
  30. package/types/helpers/hasHooks.d.ts +5 -0
  31. package/types/helpers/index.d.ts +6 -0
  32. package/types/helpers/isMatchingPaths.d.ts +2 -0
  33. package/types/helpers/isRecordType.d.ts +2 -0
  34. package/types/helpers/profiler.d.ts +22 -0
  35. package/types/helpers/transformProfilerData.d.ts +3 -0
  36. package/types/index.d.ts +2 -0
  37. package/types/plugin.d.ts +20 -0
  38. package/types/types.d.ts +16 -0
@@ -0,0 +1,346 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ ProfilerDevtoolsPlugin: () => ProfilerDevtoolsPlugin
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+
27
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/plugin.ts
28
+ var import_plugin2 = require("@player-devtools/plugin");
29
+ var import_profiler_plugin_content = require("@player-devtools/profiler-plugin-content");
30
+ var import_merge = require("dset/merge");
31
+ var import_immer = require("immer");
32
+
33
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/isRecordType.ts
34
+ var isRecordType = (obj) => typeof obj === "object" && obj !== null && !Array.isArray(obj);
35
+
36
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/hasHooks.ts
37
+ var hasHooks = (obj) => {
38
+ return isRecordType(obj) && "hooks" in obj && isRecordType(obj.hooks);
39
+ };
40
+
41
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/isMatchingPaths.ts
42
+ var isMatchingPaths = (path1, path2) => {
43
+ if (path1.length !== path2.length) return false;
44
+ return path1.every((val, idx) => val === path2[idx]);
45
+ };
46
+
47
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/profiler.ts
48
+ var import_plugin = require("@player-devtools/plugin");
49
+ var Profiler = class {
50
+ constructor(onUpdate) {
51
+ this.onUpdate = onUpdate;
52
+ this.rootNodes = [];
53
+ this.stack = [];
54
+ }
55
+ start() {
56
+ this.rootNodes = [];
57
+ this.stack = [];
58
+ this.onUpdate?.();
59
+ }
60
+ clear() {
61
+ const now = (0, import_plugin.getNowTime)();
62
+ for (const node of this.stack) {
63
+ node.startTime = now;
64
+ node.children = node.children.filter((x) => x.endTime === void 0);
65
+ }
66
+ for (let i = 1; i < this.stack.length; i++) {
67
+ this.stack[i - 1].children = [this.stack[i]];
68
+ }
69
+ this.rootNodes = this.stack.slice(0, 1);
70
+ this.onUpdate?.();
71
+ }
72
+ cloneNode(node, snapshotTime) {
73
+ const children = node.children.map((c) => this.cloneNode(c, snapshotTime));
74
+ const endTime = node.endTime ?? (snapshotTime !== void 0 ? snapshotTime : void 0);
75
+ const value = node.value ?? (endTime !== void 0 && node.startTime !== void 0 ? Math.ceil((endTime - node.startTime) * 1e3) : children.reduce((prev, current) => prev + (current?.value ?? 0), 0));
76
+ return {
77
+ ...node,
78
+ endTime,
79
+ value,
80
+ children
81
+ };
82
+ }
83
+ getSnapshot() {
84
+ const now = (0, import_plugin.getNowTime)();
85
+ return {
86
+ rootNodes: this.rootNodes.map((n) => this.cloneNode(n, now))
87
+ };
88
+ }
89
+ startTimer(hookName) {
90
+ const node = {
91
+ name: hookName,
92
+ startTime: (0, import_plugin.getNowTime)(),
93
+ children: []
94
+ };
95
+ if (this.stack.length > 0) {
96
+ this.stack[this.stack.length - 1].children.push(node);
97
+ } else {
98
+ this.rootNodes.push(node);
99
+ }
100
+ this.stack.push(node);
101
+ }
102
+ finalizeNode(node, endTime) {
103
+ const duration = node.startTime !== void 0 ? endTime - node.startTime : 0.01;
104
+ node.endTime = endTime;
105
+ node.value = Math.ceil(duration * 1e3);
106
+ node.tooltip = `${node.name}, ${duration.toFixed(4)} (ms)`;
107
+ }
108
+ endTimer({ hookName }) {
109
+ const idx = [...this.stack].reverse().findIndex((n) => n.name === hookName);
110
+ if (idx === -1) {
111
+ console.warn(`endTimer: '${hookName}' not found in stack, ignoring`);
112
+ return;
113
+ }
114
+ const targetIdx = this.stack.length - 1 - idx;
115
+ const endTime = (0, import_plugin.getNowTime)();
116
+ for (let i = this.stack.length - 1; i > targetIdx; i--) {
117
+ const orphan = this.stack[i];
118
+ console.warn(
119
+ `endTimer: popping '${orphan.name}' \u2014 timer was never explicitly ended`
120
+ );
121
+ this.finalizeNode(orphan, endTime);
122
+ }
123
+ this.finalizeNode(this.stack[targetIdx], endTime);
124
+ this.stack.length = targetIdx;
125
+ this.onUpdate?.();
126
+ }
127
+ stopProfiler() {
128
+ return { rootNodes: [...this.rootNodes] };
129
+ }
130
+ };
131
+
132
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/transformProfilerData.ts
133
+ var createSpacer = (gap) => ({
134
+ name: "(work)",
135
+ value: Math.ceil(gap * 1e3),
136
+ children: [],
137
+ backgroundColor: "#000000",
138
+ color: "#000000",
139
+ tooltip: "Placeholder time between hooks"
140
+ });
141
+ var transformProfilerData = (root) => {
142
+ return {
143
+ ...root,
144
+ children: transformProfilerDataHelper(root.children, root.startTime)
145
+ };
146
+ };
147
+ var transformProfilerDataHelper = (nodes, parentStart = 0) => {
148
+ const merged = [];
149
+ let cursor = parentStart;
150
+ for (const node of nodes) {
151
+ if (node.startTime === void 0 || node.endTime === void 0 || node.value === void 0 || node.value <= 0) {
152
+ continue;
153
+ }
154
+ const next = {
155
+ ...node,
156
+ children: transformProfilerDataHelper(node.children, node.startTime)
157
+ };
158
+ const gap = node.startTime - cursor;
159
+ if (gap > 0) {
160
+ merged.push(createSpacer(gap));
161
+ }
162
+ cursor = node.endTime;
163
+ merged.push(next);
164
+ }
165
+ return merged;
166
+ };
167
+
168
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/addProfilerInterceptorsToHooks.ts
169
+ var IGNORED_PATHS = [["view"]];
170
+ var isAnyHook = (obj) => {
171
+ return isRecordType(obj) && "intercept" in obj && typeof obj.intercept === "function";
172
+ };
173
+ var addProfilerInterceptorsToHooks = (obj, profiler, currentPath = [], intercepted = /* @__PURE__ */ new WeakSet()) => {
174
+ if (!hasHooks(obj)) {
175
+ return;
176
+ }
177
+ Object.entries(obj.hooks).forEach(([key, value]) => {
178
+ const nextPath = [...currentPath, key];
179
+ if (!isAnyHook(value) || IGNORED_PATHS.some((path) => isMatchingPaths(path, nextPath)) || intercepted.has(value)) {
180
+ return;
181
+ }
182
+ intercepted.add(value);
183
+ value.intercept({
184
+ call: (...args) => {
185
+ if (args.length > 0) {
186
+ addProfilerInterceptorsToHooks(
187
+ args[0],
188
+ profiler,
189
+ nextPath,
190
+ intercepted
191
+ );
192
+ }
193
+ profiler.startTimer(key);
194
+ },
195
+ done: () => {
196
+ profiler.endTimer({ hookName: key });
197
+ },
198
+ result: () => {
199
+ profiler.endTimer({ hookName: key });
200
+ },
201
+ error: () => {
202
+ profiler.endTimer({ hookName: key });
203
+ }
204
+ });
205
+ });
206
+ };
207
+
208
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/plugin.ts
209
+ var wrapInRoot = (nodes) => {
210
+ const startTime = nodes.reduce(
211
+ (min, n) => n.startTime !== void 0 && (min === void 0 || n.startTime < min) ? n.startTime : min,
212
+ void 0
213
+ ) ?? 0;
214
+ const endTime = nodes.reduce(
215
+ (max, n) => n.endTime !== void 0 && (max === void 0 || n.endTime > max) ? n.endTime : max,
216
+ void 0
217
+ ) ?? startTime;
218
+ return {
219
+ name: "root",
220
+ startTime,
221
+ endTime,
222
+ value: Math.ceil((endTime - startTime) * 1e3),
223
+ children: nodes
224
+ };
225
+ };
226
+ var pluginData = import_profiler_plugin_content.ProfilerPluginData;
227
+ var pluginID = pluginData.id;
228
+ var ProfilerDevtoolsPlugin = class extends import_plugin2.DevtoolsPlugin {
229
+ constructor(options) {
230
+ super({
231
+ ...options,
232
+ pluginData
233
+ });
234
+ this.name = "ProfilerDevtoolsPlugin";
235
+ this.interactionMap = /* @__PURE__ */ new Map([
236
+ [import_profiler_plugin_content.INTERACTIONS.START_PROFILING, () => this.startProfiler()],
237
+ [import_profiler_plugin_content.INTERACTIONS.STOP_PROFILING, () => this.stopProfiler()],
238
+ [import_profiler_plugin_content.INTERACTIONS.RESET_PROFILING, () => this.clearProfiler()]
239
+ ]);
240
+ this.profilerObj = new Profiler(() => {
241
+ const { rootNodes } = this.profilerObj.getSnapshot();
242
+ const newState = this.produceState(
243
+ [
244
+ ["plugins", pluginID, "flow", "data", "rootNode"],
245
+ transformProfilerData(wrapInRoot(rootNodes))
246
+ ],
247
+ [["plugins", pluginID, "flow", "data", "rawNodes"], rootNodes]
248
+ );
249
+ this.store.dispatch(
250
+ (0, import_plugin2.genDataChangeTransaction)({
251
+ playerID: this.playerID,
252
+ data: newState.plugins[pluginID]?.flow.data,
253
+ pluginID
254
+ })
255
+ );
256
+ });
257
+ }
258
+ /**
259
+ * Produces a new store state with each `[path, value]` pair written into the
260
+ * draft via `dset`, leaving the live store untouched.
261
+ */
262
+ produceState(...updates) {
263
+ return (0, import_immer.produce)(this.store.getState(), (draft) => {
264
+ updates.forEach(([path, value]) => {
265
+ (0, import_merge.dset)(draft, path, value);
266
+ });
267
+ });
268
+ }
269
+ startProfiler() {
270
+ this.profilerObj.start();
271
+ const newState = (0, import_immer.produce)(this.store.getState(), (draft) => {
272
+ (0, import_merge.dset)(draft, ["plugins", pluginID, "flow", "data", "profiling"], true);
273
+ (0, import_merge.dset)(
274
+ draft,
275
+ ["plugins", pluginID, "flow", "data", "displayFlameGraph"],
276
+ false
277
+ );
278
+ });
279
+ this.store.dispatch(
280
+ (0, import_plugin2.genDataChangeTransaction)({
281
+ playerID: this.playerID,
282
+ data: newState.plugins[pluginID]?.flow.data,
283
+ pluginID
284
+ })
285
+ );
286
+ }
287
+ clearProfiler() {
288
+ this.profilerObj.clear();
289
+ }
290
+ stopProfiler() {
291
+ const result = this.profilerObj.stopProfiler();
292
+ const { rootNodes } = result;
293
+ const newState = this.produceState(
294
+ [
295
+ ["plugins", pluginID, "flow", "data", "rootNode"],
296
+ transformProfilerData(wrapInRoot(rootNodes))
297
+ ],
298
+ [["plugins", pluginID, "flow", "data", "rawNodes"], rootNodes],
299
+ [["plugins", pluginID, "flow", "data", "profiling"], false],
300
+ [["plugins", pluginID, "flow", "data", "displayFlameGraph"], true]
301
+ );
302
+ this.store.dispatch(
303
+ (0, import_plugin2.genDataChangeTransaction)({
304
+ playerID: this.playerID,
305
+ data: newState.plugins[pluginID]?.flow.data,
306
+ pluginID
307
+ })
308
+ );
309
+ return result;
310
+ }
311
+ apply(player) {
312
+ if (!this.checkIfDevtoolsIsActive()) {
313
+ return;
314
+ }
315
+ super.apply(player);
316
+ addProfilerInterceptorsToHooks(player, this.profilerObj);
317
+ this.profilerObj.start();
318
+ const initialState = (0, import_immer.produce)(this.store.getState(), (draft) => {
319
+ (0, import_merge.dset)(draft, ["plugins", pluginID, "flow", "data", "profiling"], true);
320
+ (0, import_merge.dset)(
321
+ draft,
322
+ ["plugins", pluginID, "flow", "data", "displayFlameGraph"],
323
+ false
324
+ );
325
+ });
326
+ this.store.dispatch(
327
+ (0, import_plugin2.genDataChangeTransaction)({
328
+ playerID: this.playerID,
329
+ data: initialState.plugins[pluginID]?.flow.data,
330
+ pluginID
331
+ })
332
+ );
333
+ }
334
+ processInteraction(interaction) {
335
+ super.processInteraction(interaction);
336
+ const {
337
+ payload: { type }
338
+ } = interaction;
339
+ this.interactionMap.get(type)?.();
340
+ }
341
+ };
342
+ // Annotate the CommonJS export names for ESM import in node:
343
+ 0 && (module.exports = {
344
+ ProfilerDevtoolsPlugin
345
+ });
346
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/index.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/plugin.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/isRecordType.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/hasHooks.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/isMatchingPaths.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/profiler.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/helpers/transformProfilerData.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/core/src/addProfilerInterceptorsToHooks.ts"],"sourcesContent":["export * from \"./plugin\";\n","import {\n DevtoolsPlugin,\n genDataChangeTransaction,\n type DevtoolsPluginOptions,\n} from \"@player-devtools/plugin\";\nimport type {\n DevtoolsPluginInteractionEvent,\n DevtoolsPluginsStore,\n} from \"@player-devtools/types\";\nimport type { Player } from \"@player-ui/player\";\nimport {\n INTERACTIONS,\n ProfilerPluginData,\n} from \"@player-devtools/profiler-plugin-content\";\nimport { dset } from \"dset/merge\";\nimport { produce } from \"immer\";\nimport { Profiler, transformProfilerData } from \"./helpers\";\nimport type { ProfilerNode } from \"./types\";\nimport { addProfilerInterceptorsToHooks } from \"./addProfilerInterceptorsToHooks\";\n\nconst wrapInRoot = (nodes: ProfilerNode[]): ProfilerNode => {\n const startTime =\n nodes.reduce<number | undefined>(\n (min, n) =>\n n.startTime !== undefined && (min === undefined || n.startTime < min)\n ? n.startTime\n : min,\n undefined,\n ) ?? 0;\n const endTime =\n nodes.reduce<number | undefined>(\n (max, n) =>\n n.endTime !== undefined && (max === undefined || n.endTime > max)\n ? n.endTime\n : max,\n undefined,\n ) ?? startTime;\n return {\n name: \"root\",\n startTime,\n endTime,\n value: Math.ceil((endTime - startTime) * 1000),\n children: nodes,\n };\n};\n\nconst pluginData = ProfilerPluginData;\n\nconst pluginID = pluginData.id;\n\nexport class ProfilerDevtoolsPlugin extends DevtoolsPlugin {\n name = \"ProfilerDevtoolsPlugin\";\n\n private readonly profilerObj: Profiler;\n\n private readonly interactionMap: Map<string, () => void> = new Map([\n [INTERACTIONS.START_PROFILING, () => this.startProfiler()],\n [INTERACTIONS.STOP_PROFILING, () => this.stopProfiler()],\n [INTERACTIONS.RESET_PROFILING, () => this.clearProfiler()],\n ]);\n\n constructor(options: Omit<DevtoolsPluginOptions, \"pluginData\">) {\n super({\n ...options,\n pluginData,\n });\n\n this.profilerObj = new Profiler(() => {\n const { rootNodes } = this.profilerObj.getSnapshot();\n const newState = this.produceState(\n [\n [\"plugins\", pluginID, \"flow\", \"data\", \"rootNode\"],\n transformProfilerData(wrapInRoot(rootNodes)),\n ],\n [[\"plugins\", pluginID, \"flow\", \"data\", \"rawNodes\"], rootNodes],\n );\n this.store.dispatch(\n genDataChangeTransaction({\n playerID: this.playerID,\n data: newState.plugins[pluginID]?.flow.data,\n pluginID,\n }),\n );\n });\n }\n\n /**\n * Produces a new store state with each `[path, value]` pair written into the\n * draft via `dset`, leaving the live store untouched.\n */\n private produceState(\n ...updates: Array<[path: Array<string>, value: unknown]>\n ): DevtoolsPluginsStore {\n return produce(this.store.getState(), (draft) => {\n updates.forEach(([path, value]) => {\n dset(draft, path, value);\n });\n });\n }\n\n private startProfiler(): void {\n this.profilerObj.start();\n const newState = produce(this.store.getState(), (draft) => {\n dset(draft, [\"plugins\", pluginID, \"flow\", \"data\", \"profiling\"], true);\n dset(\n draft,\n [\"plugins\", pluginID, \"flow\", \"data\", \"displayFlameGraph\"],\n false,\n );\n });\n this.store.dispatch(\n genDataChangeTransaction({\n playerID: this.playerID,\n data: newState.plugins[pluginID]?.flow.data,\n pluginID,\n }),\n );\n }\n\n private clearProfiler(): void {\n this.profilerObj.clear();\n }\n\n private stopProfiler(): ReturnType<Profiler[\"stopProfiler\"]> {\n const result = this.profilerObj.stopProfiler();\n const { rootNodes } = result;\n const newState = this.produceState(\n [\n [\"plugins\", pluginID, \"flow\", \"data\", \"rootNode\"],\n transformProfilerData(wrapInRoot(rootNodes)),\n ],\n [[\"plugins\", pluginID, \"flow\", \"data\", \"rawNodes\"], rootNodes],\n [[\"plugins\", pluginID, \"flow\", \"data\", \"profiling\"], false],\n [[\"plugins\", pluginID, \"flow\", \"data\", \"displayFlameGraph\"], true],\n );\n this.store.dispatch(\n genDataChangeTransaction({\n playerID: this.playerID,\n data: newState.plugins[pluginID]?.flow.data,\n pluginID,\n }),\n );\n return result;\n }\n\n apply(player: Player): void {\n if (!this.checkIfDevtoolsIsActive()) {\n return;\n }\n\n super.apply(player);\n\n // Hook once for the lifetime of this Player instance\n addProfilerInterceptorsToHooks(player, this.profilerObj);\n\n // Start profiling and dispatch initial state\n this.profilerObj.start();\n const initialState = produce(this.store.getState(), (draft) => {\n dset(draft, [\"plugins\", pluginID, \"flow\", \"data\", \"profiling\"], true);\n dset(\n draft,\n [\"plugins\", pluginID, \"flow\", \"data\", \"displayFlameGraph\"],\n false,\n );\n });\n\n this.store.dispatch(\n genDataChangeTransaction({\n playerID: this.playerID,\n data: initialState.plugins[pluginID]?.flow.data,\n pluginID,\n }),\n );\n }\n\n processInteraction(interaction: DevtoolsPluginInteractionEvent): void {\n super.processInteraction(interaction);\n\n const {\n payload: { type },\n } = interaction;\n\n this.interactionMap.get(type)?.();\n }\n}\n","export const isRecordType = <T>(obj: unknown): obj is Record<PropertyKey, T> =>\n typeof obj === \"object\" && obj !== null && !Array.isArray(obj);\n","import { isRecordType } from \"./isRecordType\";\n\nexport type ObjectWithHooks = {\n hooks: Record<PropertyKey, unknown>;\n};\n\nexport const hasHooks = (obj: unknown): obj is ObjectWithHooks => {\n return isRecordType(obj) && \"hooks\" in obj && isRecordType(obj.hooks);\n};\n","export const isMatchingPaths = (path1: string[], path2: string[]): boolean => {\n if (path1.length !== path2.length) return false;\n\n return path1.every((val, idx) => val === path2[idx]);\n};\n","import type { ProfilerNode } from \"../types\";\nimport { getNowTime } from \"@player-devtools/plugin\";\n\nexport class Profiler {\n private rootNodes: ProfilerNode[] = [];\n private stack: ProfilerNode[] = [];\n\n constructor(private readonly onUpdate?: () => void) {}\n\n start(): void {\n this.rootNodes = [];\n this.stack = [];\n this.onUpdate?.();\n }\n\n clear(): void {\n const now = getNowTime();\n // Reset each in-progress node: fresh startTime, no accumulated children\n for (const node of this.stack) {\n node.startTime = now;\n node.children = node.children.filter((x) => x.endTime === undefined);\n }\n // Re-wire parent→child links through the stack chain\n for (let i = 1; i < this.stack.length; i++) {\n this.stack[i - 1]!.children = [this.stack[i]!];\n }\n // rootNodes keeps only the outermost in-progress node (if any)\n this.rootNodes = this.stack.slice(0, 1);\n this.onUpdate?.();\n }\n\n private cloneNode(node: ProfilerNode, snapshotTime?: number): ProfilerNode {\n const children = node.children.map((c) => this.cloneNode(c, snapshotTime));\n const endTime =\n node.endTime ?? (snapshotTime !== undefined ? snapshotTime : undefined);\n const value =\n node.value ??\n (endTime !== undefined && node.startTime !== undefined\n ? Math.ceil((endTime - node.startTime) * 1000)\n : children.reduce((prev, current) => prev + (current?.value ?? 0), 0));\n\n return {\n ...node,\n endTime,\n value,\n children,\n };\n }\n\n getSnapshot(): { rootNodes: ProfilerNode[] } {\n const now = getNowTime();\n return {\n rootNodes: this.rootNodes.map((n) => this.cloneNode(n, now)),\n };\n }\n\n startTimer(hookName: string): void {\n const node: ProfilerNode = {\n name: hookName,\n startTime: getNowTime(),\n children: [],\n };\n\n if (this.stack.length > 0) {\n this.stack[this.stack.length - 1]!.children.push(node);\n } else {\n this.rootNodes.push(node);\n }\n\n this.stack.push(node);\n }\n\n private finalizeNode(node: ProfilerNode, endTime: number): void {\n const duration =\n node.startTime !== undefined ? endTime - node.startTime : 0.01;\n node.endTime = endTime;\n node.value = Math.ceil(duration * 1000);\n node.tooltip = `${node.name}, ${duration.toFixed(4)} (ms)`;\n }\n\n endTimer({ hookName }: { hookName: string }): void {\n const idx = [...this.stack].reverse().findIndex((n) => n.name === hookName);\n\n if (idx === -1) {\n console.warn(`endTimer: '${hookName}' not found in stack, ignoring`);\n return;\n }\n\n // stack index of the target (reverse idx → forward idx)\n const targetIdx = this.stack.length - 1 - idx;\n const endTime = getNowTime();\n\n // Pop and finalize everything above the target, from top down\n for (let i = this.stack.length - 1; i > targetIdx; i--) {\n const orphan = this.stack[i]!;\n console.warn(\n `endTimer: popping '${orphan.name}' — timer was never explicitly ended`,\n );\n this.finalizeNode(orphan, endTime);\n }\n\n // Finalize the target\n this.finalizeNode(this.stack[targetIdx]!, endTime);\n\n // Truncate stack\n this.stack.length = targetIdx;\n\n this.onUpdate?.();\n }\n\n stopProfiler(): { rootNodes: ProfilerNode[] } {\n return { rootNodes: [...this.rootNodes] };\n }\n}\n","import type { ProfilerNode } from \"../types\";\n\nconst createSpacer = (gap: number) => ({\n name: \"(work)\",\n value: Math.ceil(gap * 1000),\n children: [],\n backgroundColor: \"#000000\",\n color: \"#000000\",\n tooltip: \"Placeholder time between hooks\",\n});\n\nexport const transformProfilerData = (root: ProfilerNode): ProfilerNode => {\n return {\n ...root,\n children: transformProfilerDataHelper(root.children, root.startTime),\n };\n};\n\nconst transformProfilerDataHelper = (\n nodes: ProfilerNode[],\n parentStart: number = 0,\n): ProfilerNode[] => {\n const merged: ProfilerNode[] = [];\n let cursor = parentStart;\n\n for (const node of nodes) {\n if (\n node.startTime === undefined ||\n node.endTime === undefined ||\n node.value === undefined ||\n node.value <= 0\n ) {\n continue;\n }\n\n const next = {\n ...node,\n children: transformProfilerDataHelper(node.children, node.startTime),\n };\n\n const gap = node.startTime - cursor;\n if (gap > 0) {\n merged.push(createSpacer(gap));\n }\n cursor = node.endTime;\n\n merged.push(next);\n }\n\n return merged;\n};\n","import {\n AsyncParallelBailHook,\n AsyncParallelHook,\n AsyncSeriesBailHook,\n AsyncSeriesHook,\n AsyncSeriesLoopHook,\n AsyncSeriesWaterfallHook,\n SyncBailHook,\n SyncHook,\n SyncLoopHook,\n SyncWaterfallHook,\n} from \"tapable-ts\";\nimport { Profiler, hasHooks, isMatchingPaths, isRecordType } from \"./helpers\";\n\n/* Paths to hooks to ignore.\n * Currently ignoring \"view\" hook on player since it acts as a shortcut to the viewController's view hook. Including it would duplicate a lot of profiling work.\n */\nconst IGNORED_PATHS = [[\"view\"]];\n\n// Would love to just check if things are `Hook` but tapable-ts doesn't export the base class ;-;\ntype AnyHook =\n | AsyncParallelBailHook<unknown[], unknown>\n | AsyncParallelHook<unknown[]>\n | AsyncSeriesBailHook<unknown[], unknown>\n | AsyncSeriesHook<unknown[]>\n | AsyncSeriesLoopHook<unknown[]>\n | AsyncSeriesWaterfallHook<unknown[]>\n | SyncBailHook<unknown[], unknown>\n | SyncHook<unknown[]>\n | SyncLoopHook<unknown[]>\n | SyncWaterfallHook<unknown[]>;\n\n// Note: cannot use instanceof to check against the hook classes due to how JS is loaded in swift and kotlin\nconst isAnyHook = (obj: unknown): obj is AnyHook => {\n return (\n isRecordType(obj) &&\n \"intercept\" in obj &&\n typeof obj.intercept === \"function\"\n );\n};\n\n/** Recursively add profiler interceptors to each hook in the \"hooks\" property of obj. */\nexport const addProfilerInterceptorsToHooks = (\n obj: unknown,\n profiler: Profiler,\n currentPath: string[] = [],\n intercepted: WeakSet<object> = new WeakSet(),\n): void => {\n if (!hasHooks(obj)) {\n return;\n }\n\n Object.entries(obj.hooks).forEach(([key, value]) => {\n const nextPath = [...currentPath, key];\n if (\n !isAnyHook(value) ||\n IGNORED_PATHS.some((path) => isMatchingPaths(path, nextPath)) ||\n intercepted.has(value)\n ) {\n return;\n }\n\n intercepted.add(value);\n\n value.intercept({\n call: (...args) => {\n if (args.length > 0) {\n addProfilerInterceptorsToHooks(\n args[0],\n profiler,\n nextPath,\n intercepted,\n );\n }\n\n profiler.startTimer(key);\n },\n done: () => {\n profiler.endTimer({ hookName: key });\n },\n result: () => {\n profiler.endTimer({ hookName: key });\n },\n error: () => {\n profiler.endTimer({ hookName: key });\n },\n });\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,iBAIO;AAMP,qCAGO;AACP,mBAAqB;AACrB,mBAAwB;;;ACfjB,IAAM,eAAe,CAAI,QAC9B,OAAO,QAAQ,YAAY,QAAQ,QAAQ,CAAC,MAAM,QAAQ,GAAG;;;ACKxD,IAAM,WAAW,CAAC,QAAyC;AAChE,SAAO,aAAa,GAAG,KAAK,WAAW,OAAO,aAAa,IAAI,KAAK;AACtE;;;ACRO,IAAM,kBAAkB,CAAC,OAAiB,UAA6B;AAC5E,MAAI,MAAM,WAAW,MAAM,OAAQ,QAAO;AAE1C,SAAO,MAAM,MAAM,CAAC,KAAK,QAAQ,QAAQ,MAAM,GAAG,CAAC;AACrD;;;ACHA,oBAA2B;AAEpB,IAAM,WAAN,MAAe;AAAA,EAIpB,YAA6B,UAAuB;AAAvB;AAH7B,SAAQ,YAA4B,CAAC;AACrC,SAAQ,QAAwB,CAAC;AAAA,EAEoB;AAAA,EAErD,QAAc;AACZ,SAAK,YAAY,CAAC;AAClB,SAAK,QAAQ,CAAC;AACd,SAAK,WAAW;AAAA,EAClB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