@player-devtools/profiler-plugin-content 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.
@@ -0,0 +1,331 @@
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/content/src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ INTERACTIONS: () => INTERACTIONS,
24
+ PLUGIN_ID: () => PLUGIN_ID,
25
+ ProfilerPluginData: () => ProfilerPluginData,
26
+ VIEWS_IDS: () => VIEWS_IDS
27
+ });
28
+ module.exports = __toCommonJS(src_exports);
29
+
30
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/constants.ts
31
+ var PLUGIN_ID = "player-ui-profiler-plugin";
32
+ var VIEWS_IDS = {
33
+ PROFILE: "Profile",
34
+ RAW: "Raw"
35
+ };
36
+ var INTERACTIONS = {
37
+ START_PROFILING: "start-profiling",
38
+ STOP_PROFILING: "stop-profiling",
39
+ RESET_PROFILING: "reset-profiling"
40
+ };
41
+
42
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/_generated/flow.json
43
+ var flow_default = {
44
+ id: "player-ui-profiler-plugin",
45
+ views: [
46
+ {
47
+ id: "Profile",
48
+ type: "stacked-view",
49
+ header: {
50
+ asset: {
51
+ id: "Profile-header",
52
+ type: "navigation",
53
+ values: [
54
+ {
55
+ asset: {
56
+ id: "Profile-header-values-0",
57
+ type: "action",
58
+ value: "Profile",
59
+ label: {
60
+ asset: {
61
+ id: "Profile-header-values-0-label",
62
+ type: "text",
63
+ value: "Flame Graph"
64
+ }
65
+ }
66
+ }
67
+ },
68
+ {
69
+ asset: {
70
+ id: "Profile-header-values-1",
71
+ type: "action",
72
+ value: "Raw",
73
+ label: {
74
+ asset: {
75
+ id: "Profile-header-values-1-label",
76
+ type: "text",
77
+ value: "Raw"
78
+ }
79
+ }
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ main: {
86
+ asset: {
87
+ id: "Profile-main",
88
+ type: "flame-graph",
89
+ width: "@[{{rootNode.value}} / 200]@",
90
+ binding: "rootNode"
91
+ }
92
+ },
93
+ footer: {
94
+ asset: {
95
+ id: "Profile-footer",
96
+ type: "collection",
97
+ values: [
98
+ {
99
+ asset: {
100
+ id: "Profile-footer-values-0",
101
+ type: "action",
102
+ exp: "conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))",
103
+ label: {
104
+ asset: {
105
+ id: "Profile-footer-values-0-label",
106
+ type: "text",
107
+ value: "@[conditional({{profiling}} === true, 'Stop', 'Start')]@"
108
+ }
109
+ }
110
+ }
111
+ },
112
+ {
113
+ asset: {
114
+ id: "Profile-footer-values-1",
115
+ type: "action",
116
+ exp: "publish('reset-profiling')",
117
+ label: {
118
+ asset: {
119
+ id: "Profile-footer-values-1-label",
120
+ type: "text",
121
+ value: "Reset"
122
+ }
123
+ }
124
+ }
125
+ }
126
+ ]
127
+ }
128
+ }
129
+ },
130
+ {
131
+ id: "Raw",
132
+ type: "stacked-view",
133
+ header: {
134
+ asset: {
135
+ id: "Raw-header",
136
+ type: "navigation",
137
+ values: [
138
+ {
139
+ asset: {
140
+ id: "Raw-header-values-0",
141
+ type: "action",
142
+ value: "Profile",
143
+ label: {
144
+ asset: {
145
+ id: "Raw-header-values-0-label",
146
+ type: "text",
147
+ value: "Flame Graph"
148
+ }
149
+ }
150
+ }
151
+ },
152
+ {
153
+ asset: {
154
+ id: "Raw-header-values-1",
155
+ type: "action",
156
+ value: "Raw",
157
+ label: {
158
+ asset: {
159
+ id: "Raw-header-values-1-label",
160
+ type: "text",
161
+ value: "Raw"
162
+ }
163
+ }
164
+ }
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ main: {
170
+ asset: {
171
+ id: "Raw-main",
172
+ type: "object-inspector",
173
+ binding: "rawNodes"
174
+ }
175
+ },
176
+ footer: {
177
+ asset: {
178
+ id: "Raw-footer",
179
+ type: "collection",
180
+ values: [
181
+ {
182
+ asset: {
183
+ id: "Raw-footer-values-0",
184
+ type: "action",
185
+ exp: "conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))",
186
+ label: {
187
+ asset: {
188
+ id: "Raw-footer-values-0-label",
189
+ type: "text",
190
+ value: "@[conditional({{profiling}} === true, 'Stop', 'Start')]@"
191
+ }
192
+ }
193
+ }
194
+ },
195
+ {
196
+ asset: {
197
+ id: "Raw-footer-values-1",
198
+ type: "action",
199
+ exp: "publish('reset-profiling')",
200
+ label: {
201
+ asset: {
202
+ id: "Raw-footer-values-1-label",
203
+ type: "text",
204
+ value: "Reset"
205
+ }
206
+ }
207
+ }
208
+ }
209
+ ]
210
+ }
211
+ }
212
+ }
213
+ ],
214
+ navigation: {
215
+ BEGIN: "Plugin",
216
+ Plugin: {
217
+ startState: "PROFILE",
218
+ PROFILE: {
219
+ state_type: "VIEW",
220
+ ref: "Profile",
221
+ transitions: {
222
+ Profile: "PROFILE",
223
+ Raw: "RAW"
224
+ }
225
+ },
226
+ RAW: {
227
+ state_type: "VIEW",
228
+ ref: "Raw",
229
+ transitions: {
230
+ Profile: "PROFILE",
231
+ Raw: "RAW"
232
+ }
233
+ }
234
+ }
235
+ },
236
+ schema: {
237
+ ROOT: {
238
+ profiling: {
239
+ type: "BooleanType",
240
+ default: false,
241
+ validation: [
242
+ {
243
+ type: "oneOf",
244
+ message: "Value must be true or false",
245
+ options: [
246
+ true,
247
+ false
248
+ ]
249
+ }
250
+ ]
251
+ },
252
+ displayFlameGraph: {
253
+ type: "BooleanType",
254
+ default: false,
255
+ validation: [
256
+ {
257
+ type: "oneOf",
258
+ message: "Value must be true or false",
259
+ options: [
260
+ true,
261
+ false
262
+ ]
263
+ }
264
+ ]
265
+ },
266
+ rootNode: {
267
+ type: "RecordType"
268
+ },
269
+ rootNodes: {
270
+ type: "RecordType"
271
+ },
272
+ rawNodes: {
273
+ type: "RecordType"
274
+ }
275
+ }
276
+ },
277
+ data: {
278
+ profiling: false,
279
+ displayFlameGraph: false,
280
+ rootNode: {
281
+ value: 0
282
+ },
283
+ rawNodes: []
284
+ }
285
+ };
286
+
287
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/index.ts
288
+ var PLUGIN_VERSION = true ? "0.13.1--canary.16.915" : "unstamped";
289
+ var ProfilerPluginData = {
290
+ id: PLUGIN_ID,
291
+ name: "Player UI Profiler",
292
+ description: "Standard Player UI Profiler",
293
+ version: PLUGIN_VERSION,
294
+ flow: flow_default,
295
+ capabilities: {
296
+ description: "Profiles Player hook execution timing and exposes the result as a flame graph. Supports starting, stopping, and resetting profiling.",
297
+ data: {
298
+ rootNode: {
299
+ description: "The captured hook timings as a flame-graph tree (transformed for display)"
300
+ },
301
+ rawNodes: {
302
+ description: "The untransformed captured profiler nodes"
303
+ },
304
+ profiling: {
305
+ description: "Whether profiling is currently running"
306
+ },
307
+ displayFlameGraph: {
308
+ description: "Whether the client should render the flame graph"
309
+ }
310
+ },
311
+ actions: {
312
+ [INTERACTIONS.START_PROFILING]: {
313
+ description: "Start profiling Player hook execution"
314
+ },
315
+ [INTERACTIONS.STOP_PROFILING]: {
316
+ description: "Stop profiling and publish the captured flame-graph data"
317
+ },
318
+ [INTERACTIONS.RESET_PROFILING]: {
319
+ description: "Clear the captured profiler nodes"
320
+ }
321
+ }
322
+ }
323
+ };
324
+ // Annotate the CommonJS export names for ESM import in node:
325
+ 0 && (module.exports = {
326
+ INTERACTIONS,
327
+ PLUGIN_ID,
328
+ ProfilerPluginData,
329
+ VIEWS_IDS
330
+ });
331
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/index.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/constants.ts","../../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/_generated/flow.json"],"sourcesContent":["import type { PluginData } from \"@player-devtools/types\";\nimport { PLUGIN_ID, INTERACTIONS } from \"./constants\";\n\n// Generated via dsl_compile target\nimport flow from \"../_generated/flow.json\";\n\ndeclare global {\n const __VERSION__: string;\n}\n\nconst PLUGIN_VERSION =\n typeof __VERSION__ !== \"undefined\" ? __VERSION__ : \"unstamped\";\n\nexport const ProfilerPluginData: PluginData = {\n id: PLUGIN_ID,\n name: \"Player UI Profiler\",\n description: \"Standard Player UI Profiler\",\n version: PLUGIN_VERSION,\n flow,\n capabilities: {\n description:\n \"Profiles Player hook execution timing and exposes the result as a flame graph. Supports starting, stopping, and resetting profiling.\",\n data: {\n rootNode: {\n description:\n \"The captured hook timings as a flame-graph tree (transformed for display)\",\n },\n rawNodes: {\n description: \"The untransformed captured profiler nodes\",\n },\n profiling: {\n description: \"Whether profiling is currently running\",\n },\n displayFlameGraph: {\n description: \"Whether the client should render the flame graph\",\n },\n },\n actions: {\n [INTERACTIONS.START_PROFILING]: {\n description: \"Start profiling Player hook execution\",\n },\n [INTERACTIONS.STOP_PROFILING]: {\n description: \"Stop profiling and publish the captured flame-graph data\",\n },\n [INTERACTIONS.RESET_PROFILING]: {\n description: \"Clear the captured profiler nodes\",\n },\n },\n },\n};\n\nexport * from \"./constants\";\n","export const PLUGIN_ID = \"player-ui-profiler-plugin\";\n\nexport const VIEWS_IDS = {\n PROFILE: \"Profile\",\n RAW: \"Raw\",\n};\n\nexport const INTERACTIONS = {\n START_PROFILING: \"start-profiling\",\n STOP_PROFILING: \"stop-profiling\",\n RESET_PROFILING: \"reset-profiling\",\n};\n","{\n \"id\": \"player-ui-profiler-plugin\",\n \"views\": [\n {\n \"id\": \"Profile\",\n \"type\": \"stacked-view\",\n \"header\": {\n \"asset\": {\n \"id\": \"Profile-header\",\n \"type\": \"navigation\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Profile-header-values-0\",\n \"type\": \"action\",\n \"value\": \"Profile\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-header-values-0-label\",\n \"type\": \"text\",\n \"value\": \"Flame Graph\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Profile-header-values-1\",\n \"type\": \"action\",\n \"value\": \"Raw\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-header-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Raw\"\n }\n }\n }\n }\n ]\n }\n },\n \"main\": {\n \"asset\": {\n \"id\": \"Profile-main\",\n \"type\": \"flame-graph\",\n \"width\": \"@[{{rootNode.value}} / 200]@\",\n \"binding\": \"rootNode\"\n }\n },\n \"footer\": {\n \"asset\": {\n \"id\": \"Profile-footer\",\n \"type\": \"collection\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Profile-footer-values-0\",\n \"type\": \"action\",\n \"exp\": \"conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-footer-values-0-label\",\n \"type\": \"text\",\n \"value\": \"@[conditional({{profiling}} === true, 'Stop', 'Start')]@\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Profile-footer-values-1\",\n \"type\": \"action\",\n \"exp\": \"publish('reset-profiling')\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-footer-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Reset\"\n }\n }\n }\n }\n ]\n }\n }\n },\n {\n \"id\": \"Raw\",\n \"type\": \"stacked-view\",\n \"header\": {\n \"asset\": {\n \"id\": \"Raw-header\",\n \"type\": \"navigation\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Raw-header-values-0\",\n \"type\": \"action\",\n \"value\": \"Profile\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-header-values-0-label\",\n \"type\": \"text\",\n \"value\": \"Flame Graph\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Raw-header-values-1\",\n \"type\": \"action\",\n \"value\": \"Raw\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-header-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Raw\"\n }\n }\n }\n }\n ]\n }\n },\n \"main\": {\n \"asset\": {\n \"id\": \"Raw-main\",\n \"type\": \"object-inspector\",\n \"binding\": \"rawNodes\"\n }\n },\n \"footer\": {\n \"asset\": {\n \"id\": \"Raw-footer\",\n \"type\": \"collection\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Raw-footer-values-0\",\n \"type\": \"action\",\n \"exp\": \"conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-footer-values-0-label\",\n \"type\": \"text\",\n \"value\": \"@[conditional({{profiling}} === true, 'Stop', 'Start')]@\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Raw-footer-values-1\",\n \"type\": \"action\",\n \"exp\": \"publish('reset-profiling')\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-footer-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Reset\"\n }\n }\n }\n }\n ]\n }\n }\n }\n ],\n \"navigation\": {\n \"BEGIN\": \"Plugin\",\n \"Plugin\": {\n \"startState\": \"PROFILE\",\n \"PROFILE\": {\n \"state_type\": \"VIEW\",\n \"ref\": \"Profile\",\n \"transitions\": {\n \"Profile\": \"PROFILE\",\n \"Raw\": \"RAW\"\n }\n },\n \"RAW\": {\n \"state_type\": \"VIEW\",\n \"ref\": \"Raw\",\n \"transitions\": {\n \"Profile\": \"PROFILE\",\n \"Raw\": \"RAW\"\n }\n }\n }\n },\n \"schema\": {\n \"ROOT\": {\n \"profiling\": {\n \"type\": \"BooleanType\",\n \"default\": false,\n \"validation\": [\n {\n \"type\": \"oneOf\",\n \"message\": \"Value must be true or false\",\n \"options\": [\n true,\n false\n ]\n }\n ]\n },\n \"displayFlameGraph\": {\n \"type\": \"BooleanType\",\n \"default\": false,\n \"validation\": [\n {\n \"type\": \"oneOf\",\n \"message\": \"Value must be true or false\",\n \"options\": [\n true,\n false\n ]\n }\n ]\n },\n \"rootNode\": {\n \"type\": \"RecordType\"\n },\n \"rootNodes\": {\n \"type\": \"RecordType\"\n },\n \"rawNodes\": {\n \"type\": \"RecordType\"\n }\n }\n },\n \"data\": {\n \"profiling\": false,\n \"displayFlameGraph\": false,\n \"rootNode\": {\n \"value\": 0\n },\n \"rawNodes\": []\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,YAAY;AAElB,IAAM,YAAY;AAAA,EACvB,SAAS;AAAA,EACT,KAAK;AACP;AAEO,IAAM,eAAe;AAAA,EAC1B,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;;;ACXA;AAAA,EACE,IAAM;AAAA,EACN,OAAS;AAAA,IACP;AAAA,MACE,IAAM;AAAA,MACN,MAAQ;AAAA,MACR,QAAU;AAAA,QACR,OAAS;AAAA,UACP,IAAM;AAAA,UACN,MAAQ;AAAA,UACR,QAAU;AAAA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AAA,IACF,MAAM;AAAA,MACJ,UAAU;AAAA,QACR,aACE;AAAA,MACJ;AAAA,MACA,UAAU;AAAA,QACR,aAAa;AAAA,MACf;AAAA,MACA,WAAW;AAAA,QACT,aAAa;AAAA,MACf;AAAA,MACA,mBAAmB;AAAA,QACjB,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,CAAC,aAAa,eAAe,GAAG;AAAA,QAC9B,aAAa;AAAA,MACf;AAAA,MACA,CAAC,aAAa,cAAc,GAAG;AAAA,QAC7B,aAAa;AAAA,MACf;AAAA,MACA,CAAC,aAAa,eAAe,GAAG;AAAA,QAC9B,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,301 @@
1
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/constants.ts
2
+ var PLUGIN_ID = "player-ui-profiler-plugin";
3
+ var VIEWS_IDS = {
4
+ PROFILE: "Profile",
5
+ RAW: "Raw"
6
+ };
7
+ var INTERACTIONS = {
8
+ START_PROFILING: "start-profiling",
9
+ STOP_PROFILING: "stop-profiling",
10
+ RESET_PROFILING: "reset-profiling"
11
+ };
12
+
13
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/_generated/flow.json
14
+ var flow_default = {
15
+ id: "player-ui-profiler-plugin",
16
+ views: [
17
+ {
18
+ id: "Profile",
19
+ type: "stacked-view",
20
+ header: {
21
+ asset: {
22
+ id: "Profile-header",
23
+ type: "navigation",
24
+ values: [
25
+ {
26
+ asset: {
27
+ id: "Profile-header-values-0",
28
+ type: "action",
29
+ value: "Profile",
30
+ label: {
31
+ asset: {
32
+ id: "Profile-header-values-0-label",
33
+ type: "text",
34
+ value: "Flame Graph"
35
+ }
36
+ }
37
+ }
38
+ },
39
+ {
40
+ asset: {
41
+ id: "Profile-header-values-1",
42
+ type: "action",
43
+ value: "Raw",
44
+ label: {
45
+ asset: {
46
+ id: "Profile-header-values-1-label",
47
+ type: "text",
48
+ value: "Raw"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ main: {
57
+ asset: {
58
+ id: "Profile-main",
59
+ type: "flame-graph",
60
+ width: "@[{{rootNode.value}} / 200]@",
61
+ binding: "rootNode"
62
+ }
63
+ },
64
+ footer: {
65
+ asset: {
66
+ id: "Profile-footer",
67
+ type: "collection",
68
+ values: [
69
+ {
70
+ asset: {
71
+ id: "Profile-footer-values-0",
72
+ type: "action",
73
+ exp: "conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))",
74
+ label: {
75
+ asset: {
76
+ id: "Profile-footer-values-0-label",
77
+ type: "text",
78
+ value: "@[conditional({{profiling}} === true, 'Stop', 'Start')]@"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ {
84
+ asset: {
85
+ id: "Profile-footer-values-1",
86
+ type: "action",
87
+ exp: "publish('reset-profiling')",
88
+ label: {
89
+ asset: {
90
+ id: "Profile-footer-values-1-label",
91
+ type: "text",
92
+ value: "Reset"
93
+ }
94
+ }
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ }
100
+ },
101
+ {
102
+ id: "Raw",
103
+ type: "stacked-view",
104
+ header: {
105
+ asset: {
106
+ id: "Raw-header",
107
+ type: "navigation",
108
+ values: [
109
+ {
110
+ asset: {
111
+ id: "Raw-header-values-0",
112
+ type: "action",
113
+ value: "Profile",
114
+ label: {
115
+ asset: {
116
+ id: "Raw-header-values-0-label",
117
+ type: "text",
118
+ value: "Flame Graph"
119
+ }
120
+ }
121
+ }
122
+ },
123
+ {
124
+ asset: {
125
+ id: "Raw-header-values-1",
126
+ type: "action",
127
+ value: "Raw",
128
+ label: {
129
+ asset: {
130
+ id: "Raw-header-values-1-label",
131
+ type: "text",
132
+ value: "Raw"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ ]
138
+ }
139
+ },
140
+ main: {
141
+ asset: {
142
+ id: "Raw-main",
143
+ type: "object-inspector",
144
+ binding: "rawNodes"
145
+ }
146
+ },
147
+ footer: {
148
+ asset: {
149
+ id: "Raw-footer",
150
+ type: "collection",
151
+ values: [
152
+ {
153
+ asset: {
154
+ id: "Raw-footer-values-0",
155
+ type: "action",
156
+ exp: "conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))",
157
+ label: {
158
+ asset: {
159
+ id: "Raw-footer-values-0-label",
160
+ type: "text",
161
+ value: "@[conditional({{profiling}} === true, 'Stop', 'Start')]@"
162
+ }
163
+ }
164
+ }
165
+ },
166
+ {
167
+ asset: {
168
+ id: "Raw-footer-values-1",
169
+ type: "action",
170
+ exp: "publish('reset-profiling')",
171
+ label: {
172
+ asset: {
173
+ id: "Raw-footer-values-1-label",
174
+ type: "text",
175
+ value: "Reset"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ ]
181
+ }
182
+ }
183
+ }
184
+ ],
185
+ navigation: {
186
+ BEGIN: "Plugin",
187
+ Plugin: {
188
+ startState: "PROFILE",
189
+ PROFILE: {
190
+ state_type: "VIEW",
191
+ ref: "Profile",
192
+ transitions: {
193
+ Profile: "PROFILE",
194
+ Raw: "RAW"
195
+ }
196
+ },
197
+ RAW: {
198
+ state_type: "VIEW",
199
+ ref: "Raw",
200
+ transitions: {
201
+ Profile: "PROFILE",
202
+ Raw: "RAW"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ schema: {
208
+ ROOT: {
209
+ profiling: {
210
+ type: "BooleanType",
211
+ default: false,
212
+ validation: [
213
+ {
214
+ type: "oneOf",
215
+ message: "Value must be true or false",
216
+ options: [
217
+ true,
218
+ false
219
+ ]
220
+ }
221
+ ]
222
+ },
223
+ displayFlameGraph: {
224
+ type: "BooleanType",
225
+ default: false,
226
+ validation: [
227
+ {
228
+ type: "oneOf",
229
+ message: "Value must be true or false",
230
+ options: [
231
+ true,
232
+ false
233
+ ]
234
+ }
235
+ ]
236
+ },
237
+ rootNode: {
238
+ type: "RecordType"
239
+ },
240
+ rootNodes: {
241
+ type: "RecordType"
242
+ },
243
+ rawNodes: {
244
+ type: "RecordType"
245
+ }
246
+ }
247
+ },
248
+ data: {
249
+ profiling: false,
250
+ displayFlameGraph: false,
251
+ rootNode: {
252
+ value: 0
253
+ },
254
+ rawNodes: []
255
+ }
256
+ };
257
+
258
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/index.ts
259
+ var PLUGIN_VERSION = true ? "0.13.1--canary.16.915" : "unstamped";
260
+ var ProfilerPluginData = {
261
+ id: PLUGIN_ID,
262
+ name: "Player UI Profiler",
263
+ description: "Standard Player UI Profiler",
264
+ version: PLUGIN_VERSION,
265
+ flow: flow_default,
266
+ capabilities: {
267
+ description: "Profiles Player hook execution timing and exposes the result as a flame graph. Supports starting, stopping, and resetting profiling.",
268
+ data: {
269
+ rootNode: {
270
+ description: "The captured hook timings as a flame-graph tree (transformed for display)"
271
+ },
272
+ rawNodes: {
273
+ description: "The untransformed captured profiler nodes"
274
+ },
275
+ profiling: {
276
+ description: "Whether profiling is currently running"
277
+ },
278
+ displayFlameGraph: {
279
+ description: "Whether the client should render the flame graph"
280
+ }
281
+ },
282
+ actions: {
283
+ [INTERACTIONS.START_PROFILING]: {
284
+ description: "Start profiling Player hook execution"
285
+ },
286
+ [INTERACTIONS.STOP_PROFILING]: {
287
+ description: "Stop profiling and publish the captured flame-graph data"
288
+ },
289
+ [INTERACTIONS.RESET_PROFILING]: {
290
+ description: "Clear the captured profiler nodes"
291
+ }
292
+ }
293
+ }
294
+ };
295
+ export {
296
+ INTERACTIONS,
297
+ PLUGIN_ID,
298
+ ProfilerPluginData,
299
+ VIEWS_IDS
300
+ };
301
+ //# sourceMappingURL=index.mjs.map
package/dist/index.mjs ADDED
@@ -0,0 +1,301 @@
1
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/constants.ts
2
+ var PLUGIN_ID = "player-ui-profiler-plugin";
3
+ var VIEWS_IDS = {
4
+ PROFILE: "Profile",
5
+ RAW: "Raw"
6
+ };
7
+ var INTERACTIONS = {
8
+ START_PROFILING: "start-profiling",
9
+ STOP_PROFILING: "stop-profiling",
10
+ RESET_PROFILING: "reset-profiling"
11
+ };
12
+
13
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/_generated/flow.json
14
+ var flow_default = {
15
+ id: "player-ui-profiler-plugin",
16
+ views: [
17
+ {
18
+ id: "Profile",
19
+ type: "stacked-view",
20
+ header: {
21
+ asset: {
22
+ id: "Profile-header",
23
+ type: "navigation",
24
+ values: [
25
+ {
26
+ asset: {
27
+ id: "Profile-header-values-0",
28
+ type: "action",
29
+ value: "Profile",
30
+ label: {
31
+ asset: {
32
+ id: "Profile-header-values-0-label",
33
+ type: "text",
34
+ value: "Flame Graph"
35
+ }
36
+ }
37
+ }
38
+ },
39
+ {
40
+ asset: {
41
+ id: "Profile-header-values-1",
42
+ type: "action",
43
+ value: "Raw",
44
+ label: {
45
+ asset: {
46
+ id: "Profile-header-values-1-label",
47
+ type: "text",
48
+ value: "Raw"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ main: {
57
+ asset: {
58
+ id: "Profile-main",
59
+ type: "flame-graph",
60
+ width: "@[{{rootNode.value}} / 200]@",
61
+ binding: "rootNode"
62
+ }
63
+ },
64
+ footer: {
65
+ asset: {
66
+ id: "Profile-footer",
67
+ type: "collection",
68
+ values: [
69
+ {
70
+ asset: {
71
+ id: "Profile-footer-values-0",
72
+ type: "action",
73
+ exp: "conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))",
74
+ label: {
75
+ asset: {
76
+ id: "Profile-footer-values-0-label",
77
+ type: "text",
78
+ value: "@[conditional({{profiling}} === true, 'Stop', 'Start')]@"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ {
84
+ asset: {
85
+ id: "Profile-footer-values-1",
86
+ type: "action",
87
+ exp: "publish('reset-profiling')",
88
+ label: {
89
+ asset: {
90
+ id: "Profile-footer-values-1-label",
91
+ type: "text",
92
+ value: "Reset"
93
+ }
94
+ }
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ }
100
+ },
101
+ {
102
+ id: "Raw",
103
+ type: "stacked-view",
104
+ header: {
105
+ asset: {
106
+ id: "Raw-header",
107
+ type: "navigation",
108
+ values: [
109
+ {
110
+ asset: {
111
+ id: "Raw-header-values-0",
112
+ type: "action",
113
+ value: "Profile",
114
+ label: {
115
+ asset: {
116
+ id: "Raw-header-values-0-label",
117
+ type: "text",
118
+ value: "Flame Graph"
119
+ }
120
+ }
121
+ }
122
+ },
123
+ {
124
+ asset: {
125
+ id: "Raw-header-values-1",
126
+ type: "action",
127
+ value: "Raw",
128
+ label: {
129
+ asset: {
130
+ id: "Raw-header-values-1-label",
131
+ type: "text",
132
+ value: "Raw"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ ]
138
+ }
139
+ },
140
+ main: {
141
+ asset: {
142
+ id: "Raw-main",
143
+ type: "object-inspector",
144
+ binding: "rawNodes"
145
+ }
146
+ },
147
+ footer: {
148
+ asset: {
149
+ id: "Raw-footer",
150
+ type: "collection",
151
+ values: [
152
+ {
153
+ asset: {
154
+ id: "Raw-footer-values-0",
155
+ type: "action",
156
+ exp: "conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))",
157
+ label: {
158
+ asset: {
159
+ id: "Raw-footer-values-0-label",
160
+ type: "text",
161
+ value: "@[conditional({{profiling}} === true, 'Stop', 'Start')]@"
162
+ }
163
+ }
164
+ }
165
+ },
166
+ {
167
+ asset: {
168
+ id: "Raw-footer-values-1",
169
+ type: "action",
170
+ exp: "publish('reset-profiling')",
171
+ label: {
172
+ asset: {
173
+ id: "Raw-footer-values-1-label",
174
+ type: "text",
175
+ value: "Reset"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ ]
181
+ }
182
+ }
183
+ }
184
+ ],
185
+ navigation: {
186
+ BEGIN: "Plugin",
187
+ Plugin: {
188
+ startState: "PROFILE",
189
+ PROFILE: {
190
+ state_type: "VIEW",
191
+ ref: "Profile",
192
+ transitions: {
193
+ Profile: "PROFILE",
194
+ Raw: "RAW"
195
+ }
196
+ },
197
+ RAW: {
198
+ state_type: "VIEW",
199
+ ref: "Raw",
200
+ transitions: {
201
+ Profile: "PROFILE",
202
+ Raw: "RAW"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ schema: {
208
+ ROOT: {
209
+ profiling: {
210
+ type: "BooleanType",
211
+ default: false,
212
+ validation: [
213
+ {
214
+ type: "oneOf",
215
+ message: "Value must be true or false",
216
+ options: [
217
+ true,
218
+ false
219
+ ]
220
+ }
221
+ ]
222
+ },
223
+ displayFlameGraph: {
224
+ type: "BooleanType",
225
+ default: false,
226
+ validation: [
227
+ {
228
+ type: "oneOf",
229
+ message: "Value must be true or false",
230
+ options: [
231
+ true,
232
+ false
233
+ ]
234
+ }
235
+ ]
236
+ },
237
+ rootNode: {
238
+ type: "RecordType"
239
+ },
240
+ rootNodes: {
241
+ type: "RecordType"
242
+ },
243
+ rawNodes: {
244
+ type: "RecordType"
245
+ }
246
+ }
247
+ },
248
+ data: {
249
+ profiling: false,
250
+ displayFlameGraph: false,
251
+ rootNode: {
252
+ value: 0
253
+ },
254
+ rawNodes: []
255
+ }
256
+ };
257
+
258
+ // ../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/index.ts
259
+ var PLUGIN_VERSION = true ? "0.13.1--canary.16.915" : "unstamped";
260
+ var ProfilerPluginData = {
261
+ id: PLUGIN_ID,
262
+ name: "Player UI Profiler",
263
+ description: "Standard Player UI Profiler",
264
+ version: PLUGIN_VERSION,
265
+ flow: flow_default,
266
+ capabilities: {
267
+ description: "Profiles Player hook execution timing and exposes the result as a flame graph. Supports starting, stopping, and resetting profiling.",
268
+ data: {
269
+ rootNode: {
270
+ description: "The captured hook timings as a flame-graph tree (transformed for display)"
271
+ },
272
+ rawNodes: {
273
+ description: "The untransformed captured profiler nodes"
274
+ },
275
+ profiling: {
276
+ description: "Whether profiling is currently running"
277
+ },
278
+ displayFlameGraph: {
279
+ description: "Whether the client should render the flame graph"
280
+ }
281
+ },
282
+ actions: {
283
+ [INTERACTIONS.START_PROFILING]: {
284
+ description: "Start profiling Player hook execution"
285
+ },
286
+ [INTERACTIONS.STOP_PROFILING]: {
287
+ description: "Stop profiling and publish the captured flame-graph data"
288
+ },
289
+ [INTERACTIONS.RESET_PROFILING]: {
290
+ description: "Clear the captured profiler nodes"
291
+ }
292
+ }
293
+ }
294
+ };
295
+ export {
296
+ INTERACTIONS,
297
+ PLUGIN_ID,
298
+ ProfilerPluginData,
299
+ VIEWS_IDS
300
+ };
301
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/constants.ts","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/_generated/flow.json","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/plugins/profiler/content/src/index.ts"],"sourcesContent":["export const PLUGIN_ID = \"player-ui-profiler-plugin\";\n\nexport const VIEWS_IDS = {\n PROFILE: \"Profile\",\n RAW: \"Raw\",\n};\n\nexport const INTERACTIONS = {\n START_PROFILING: \"start-profiling\",\n STOP_PROFILING: \"stop-profiling\",\n RESET_PROFILING: \"reset-profiling\",\n};\n","{\n \"id\": \"player-ui-profiler-plugin\",\n \"views\": [\n {\n \"id\": \"Profile\",\n \"type\": \"stacked-view\",\n \"header\": {\n \"asset\": {\n \"id\": \"Profile-header\",\n \"type\": \"navigation\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Profile-header-values-0\",\n \"type\": \"action\",\n \"value\": \"Profile\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-header-values-0-label\",\n \"type\": \"text\",\n \"value\": \"Flame Graph\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Profile-header-values-1\",\n \"type\": \"action\",\n \"value\": \"Raw\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-header-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Raw\"\n }\n }\n }\n }\n ]\n }\n },\n \"main\": {\n \"asset\": {\n \"id\": \"Profile-main\",\n \"type\": \"flame-graph\",\n \"width\": \"@[{{rootNode.value}} / 200]@\",\n \"binding\": \"rootNode\"\n }\n },\n \"footer\": {\n \"asset\": {\n \"id\": \"Profile-footer\",\n \"type\": \"collection\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Profile-footer-values-0\",\n \"type\": \"action\",\n \"exp\": \"conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-footer-values-0-label\",\n \"type\": \"text\",\n \"value\": \"@[conditional({{profiling}} === true, 'Stop', 'Start')]@\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Profile-footer-values-1\",\n \"type\": \"action\",\n \"exp\": \"publish('reset-profiling')\",\n \"label\": {\n \"asset\": {\n \"id\": \"Profile-footer-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Reset\"\n }\n }\n }\n }\n ]\n }\n }\n },\n {\n \"id\": \"Raw\",\n \"type\": \"stacked-view\",\n \"header\": {\n \"asset\": {\n \"id\": \"Raw-header\",\n \"type\": \"navigation\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Raw-header-values-0\",\n \"type\": \"action\",\n \"value\": \"Profile\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-header-values-0-label\",\n \"type\": \"text\",\n \"value\": \"Flame Graph\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Raw-header-values-1\",\n \"type\": \"action\",\n \"value\": \"Raw\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-header-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Raw\"\n }\n }\n }\n }\n ]\n }\n },\n \"main\": {\n \"asset\": {\n \"id\": \"Raw-main\",\n \"type\": \"object-inspector\",\n \"binding\": \"rawNodes\"\n }\n },\n \"footer\": {\n \"asset\": {\n \"id\": \"Raw-footer\",\n \"type\": \"collection\",\n \"values\": [\n {\n \"asset\": {\n \"id\": \"Raw-footer-values-0\",\n \"type\": \"action\",\n \"exp\": \"conditional({{profiling}} === true, publish('stop-profiling'), publish('start-profiling'))\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-footer-values-0-label\",\n \"type\": \"text\",\n \"value\": \"@[conditional({{profiling}} === true, 'Stop', 'Start')]@\"\n }\n }\n }\n },\n {\n \"asset\": {\n \"id\": \"Raw-footer-values-1\",\n \"type\": \"action\",\n \"exp\": \"publish('reset-profiling')\",\n \"label\": {\n \"asset\": {\n \"id\": \"Raw-footer-values-1-label\",\n \"type\": \"text\",\n \"value\": \"Reset\"\n }\n }\n }\n }\n ]\n }\n }\n }\n ],\n \"navigation\": {\n \"BEGIN\": \"Plugin\",\n \"Plugin\": {\n \"startState\": \"PROFILE\",\n \"PROFILE\": {\n \"state_type\": \"VIEW\",\n \"ref\": \"Profile\",\n \"transitions\": {\n \"Profile\": \"PROFILE\",\n \"Raw\": \"RAW\"\n }\n },\n \"RAW\": {\n \"state_type\": \"VIEW\",\n \"ref\": \"Raw\",\n \"transitions\": {\n \"Profile\": \"PROFILE\",\n \"Raw\": \"RAW\"\n }\n }\n }\n },\n \"schema\": {\n \"ROOT\": {\n \"profiling\": {\n \"type\": \"BooleanType\",\n \"default\": false,\n \"validation\": [\n {\n \"type\": \"oneOf\",\n \"message\": \"Value must be true or false\",\n \"options\": [\n true,\n false\n ]\n }\n ]\n },\n \"displayFlameGraph\": {\n \"type\": \"BooleanType\",\n \"default\": false,\n \"validation\": [\n {\n \"type\": \"oneOf\",\n \"message\": \"Value must be true or false\",\n \"options\": [\n true,\n false\n ]\n }\n ]\n },\n \"rootNode\": {\n \"type\": \"RecordType\"\n },\n \"rootNodes\": {\n \"type\": \"RecordType\"\n },\n \"rawNodes\": {\n \"type\": \"RecordType\"\n }\n }\n },\n \"data\": {\n \"profiling\": false,\n \"displayFlameGraph\": false,\n \"rootNode\": {\n \"value\": 0\n },\n \"rawNodes\": []\n }\n}","import type { PluginData } from \"@player-devtools/types\";\nimport { PLUGIN_ID, INTERACTIONS } from \"./constants\";\n\n// Generated via dsl_compile target\nimport flow from \"../_generated/flow.json\";\n\ndeclare global {\n const __VERSION__: string;\n}\n\nconst PLUGIN_VERSION =\n typeof __VERSION__ !== \"undefined\" ? __VERSION__ : \"unstamped\";\n\nexport const ProfilerPluginData: PluginData = {\n id: PLUGIN_ID,\n name: \"Player UI Profiler\",\n description: \"Standard Player UI Profiler\",\n version: PLUGIN_VERSION,\n flow,\n capabilities: {\n description:\n \"Profiles Player hook execution timing and exposes the result as a flame graph. Supports starting, stopping, and resetting profiling.\",\n data: {\n rootNode: {\n description:\n \"The captured hook timings as a flame-graph tree (transformed for display)\",\n },\n rawNodes: {\n description: \"The untransformed captured profiler nodes\",\n },\n profiling: {\n description: \"Whether profiling is currently running\",\n },\n displayFlameGraph: {\n description: \"Whether the client should render the flame graph\",\n },\n },\n actions: {\n [INTERACTIONS.START_PROFILING]: {\n description: \"Start profiling Player hook execution\",\n },\n [INTERACTIONS.STOP_PROFILING]: {\n description: \"Stop profiling and publish the captured flame-graph data\",\n },\n [INTERACTIONS.RESET_PROFILING]: {\n description: \"Clear the captured profiler nodes\",\n },\n },\n },\n};\n\nexport * from \"./constants\";\n"],"mappings":";AAAO,IAAM,YAAY;AAElB,IAAM,YAAY;AAAA,EACvB,SAAS;AAAA,EACT,KAAK;AACP;AAEO,IAAM,eAAe;AAAA,EAC1B,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;;;ACXA;AAAA,EACE,IAAM;AAAA,EACN,OAAS;AAAA,IACP;AAAA,MACE,IAAM;AAAA,MACN,MAAQ;AA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,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS;AAAA,EACT;AAAA,EACA,cAAc;AAAA,IACZ,aACE;AAAA,IACF,MAAM;AAAA,MACJ,UAAU;AAAA,QACR,aACE;AAAA,MACJ;AAAA,MACA,UAAU;AAAA,QACR,aAAa;AAAA,MACf;AAAA,MACA,WAAW;AAAA,QACT,aAAa;AAAA,MACf;AAAA,MACA,mBAAmB;AAAA,QACjB,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,CAAC,aAAa,eAAe,GAAG;AAAA,QAC9B,aAAa;AAAA,MACf;AAAA,MACA,CAAC,aAAa,cAAc,GAAG;AAAA,QAC7B,aAAa;AAAA,MACf;AAAA,MACA,CAAC,aAAa,eAAe,GAAG;AAAA,QAC9B,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "sideEffects": false,
3
+ "files": [
4
+ "dist",
5
+ "src",
6
+ "types"
7
+ ],
8
+ "name": "@player-devtools/profiler-plugin-content",
9
+ "version": "0.13.1--canary.16.915",
10
+ "main": "dist/cjs/index.cjs",
11
+ "dependencies": {
12
+ "@player-devtools/types": "0.13.1--canary.16.915",
13
+ "tslib": "^2.6.2"
14
+ },
15
+ "module": "dist/index.legacy-esm.js",
16
+ "types": "types/index.d.ts",
17
+ "exports": {
18
+ "./package.json": "./package.json",
19
+ "./dist/index.css": "./dist/index.css",
20
+ ".": {
21
+ "types": "./types/index.d.ts",
22
+ "import": "./dist/index.mjs",
23
+ "default": "./dist/cjs/index.cjs"
24
+ }
25
+ },
26
+ "peerDependencies": {}
27
+ }
@@ -0,0 +1,12 @@
1
+ export const PLUGIN_ID = "player-ui-profiler-plugin";
2
+
3
+ export const VIEWS_IDS = {
4
+ PROFILE: "Profile",
5
+ RAW: "Raw",
6
+ };
7
+
8
+ export const INTERACTIONS = {
9
+ START_PROFILING: "start-profiling",
10
+ STOP_PROFILING: "stop-profiling",
11
+ RESET_PROFILING: "reset-profiling",
12
+ };
package/src/index.ts ADDED
@@ -0,0 +1,52 @@
1
+ import type { PluginData } from "@player-devtools/types";
2
+ import { PLUGIN_ID, INTERACTIONS } from "./constants";
3
+
4
+ // Generated via dsl_compile target
5
+ import flow from "../_generated/flow.json";
6
+
7
+ declare global {
8
+ const __VERSION__: string;
9
+ }
10
+
11
+ const PLUGIN_VERSION =
12
+ typeof __VERSION__ !== "undefined" ? __VERSION__ : "unstamped";
13
+
14
+ export const ProfilerPluginData: PluginData = {
15
+ id: PLUGIN_ID,
16
+ name: "Player UI Profiler",
17
+ description: "Standard Player UI Profiler",
18
+ version: PLUGIN_VERSION,
19
+ flow,
20
+ capabilities: {
21
+ description:
22
+ "Profiles Player hook execution timing and exposes the result as a flame graph. Supports starting, stopping, and resetting profiling.",
23
+ data: {
24
+ rootNode: {
25
+ description:
26
+ "The captured hook timings as a flame-graph tree (transformed for display)",
27
+ },
28
+ rawNodes: {
29
+ description: "The untransformed captured profiler nodes",
30
+ },
31
+ profiling: {
32
+ description: "Whether profiling is currently running",
33
+ },
34
+ displayFlameGraph: {
35
+ description: "Whether the client should render the flame graph",
36
+ },
37
+ },
38
+ actions: {
39
+ [INTERACTIONS.START_PROFILING]: {
40
+ description: "Start profiling Player hook execution",
41
+ },
42
+ [INTERACTIONS.STOP_PROFILING]: {
43
+ description: "Stop profiling and publish the captured flame-graph data",
44
+ },
45
+ [INTERACTIONS.RESET_PROFILING]: {
46
+ description: "Clear the captured profiler nodes",
47
+ },
48
+ },
49
+ },
50
+ };
51
+
52
+ export * from "./constants";
@@ -0,0 +1,11 @@
1
+ export declare const PLUGIN_ID = "player-ui-profiler-plugin";
2
+ export declare const VIEWS_IDS: {
3
+ PROFILE: string;
4
+ RAW: string;
5
+ };
6
+ export declare const INTERACTIONS: {
7
+ START_PROFILING: string;
8
+ STOP_PROFILING: string;
9
+ RESET_PROFILING: string;
10
+ };
11
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,7 @@
1
+ import type { PluginData } from "@player-devtools/types";
2
+ declare global {
3
+ const __VERSION__: string;
4
+ }
5
+ export declare const ProfilerPluginData: PluginData;
6
+ export * from "./constants";
7
+ //# sourceMappingURL=index.d.ts.map