Skip to content

Commit 7794b5d

Browse files
committed
Merge branch 'master' into juan.naranjo/flutter-embedded-view-schema
2 parents c654d33 + 5d9d210 commit 7794b5d

6 files changed

Lines changed: 75 additions & 0 deletions

File tree

lib/cjs/generated/browserProfiling.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ export interface BrowserProfilerTrace {
139139
* An array of profiler resources.
140140
*/
141141
readonly resources: string[];
142+
/**
143+
* Mapping of profiler resources to their debug IDs for source map deobfuscation.
144+
*/
145+
readonly debugIds?: ResourceDebugId[];
142146
/**
143147
* An array of profiler frames.
144148
*/
@@ -176,6 +180,20 @@ export interface BrowserProfilerTrace {
176180
readonly views: RumViewEntry[];
177181
[k: string]: unknown;
178182
}
183+
/**
184+
* Association between a profiler resource and its debug ID.
185+
*/
186+
export interface ResourceDebugId {
187+
/**
188+
* Index in the trace.resources array.
189+
*/
190+
readonly resourceId: number;
191+
/**
192+
* Debug ID (UUID) for the resource, used for source map deobfuscation.
193+
*/
194+
readonly debugId: string;
195+
[k: string]: unknown;
196+
}
179197
/**
180198
* Schema of a profiler frame from the JS Self-Profiling API.
181199
*/

lib/esm/generated/browserProfiling.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ export interface BrowserProfilerTrace {
139139
* An array of profiler resources.
140140
*/
141141
readonly resources: string[];
142+
/**
143+
* Mapping of profiler resources to their debug IDs for source map deobfuscation.
144+
*/
145+
readonly debugIds?: ResourceDebugId[];
142146
/**
143147
* An array of profiler frames.
144148
*/
@@ -176,6 +180,20 @@ export interface BrowserProfilerTrace {
176180
readonly views: RumViewEntry[];
177181
[k: string]: unknown;
178182
}
183+
/**
184+
* Association between a profiler resource and its debug ID.
185+
*/
186+
export interface ResourceDebugId {
187+
/**
188+
* Index in the trace.resources array.
189+
*/
190+
readonly resourceId: number;
191+
/**
192+
* Debug ID (UUID) for the resource, used for source map deobfuscation.
193+
*/
194+
readonly debugId: string;
195+
[k: string]: unknown;
196+
}
179197
/**
180198
* Schema of a profiler frame from the JS Self-Profiling API.
181199
*/

samples/profiling/browser/profiler-trace/profiler-trace.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"resources": ["https://localhost:58682/assets/index-CiZoFVPd.js"],
3+
"debugIds": [
4+
{
5+
"resourceId": 0,
6+
"debugId": "5f4b4d0a-3f9a-4b86-9f53-8f7e9a5c7d21"
7+
}
8+
],
39
"frames": [
410
{
511
"name": "R2",

schemas/profiling/browser/profiler-trace-schema.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,25 @@
181181
}
182182
}
183183
},
184+
"ResourceDebugId": {
185+
"title": "ResourceDebugId",
186+
"type": "object",
187+
"description": "Association between a profiler resource and its debug ID.",
188+
"required": ["resourceId", "debugId"],
189+
"properties": {
190+
"resourceId": {
191+
"type": "integer",
192+
"description": "Index in the trace.resources array.",
193+
"readOnly": true
194+
},
195+
"debugId": {
196+
"type": "string",
197+
"description": "Debug ID (UUID) for the resource, used for source map deobfuscation.",
198+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
199+
"readOnly": true
200+
}
201+
}
202+
},
184203
"ViewEntry": {
185204
"title": "RumViewEntry",
186205
"type": "object",
@@ -212,6 +231,14 @@
212231
"description": "An array of profiler resources.",
213232
"readOnly": true
214233
},
234+
"debugIds": {
235+
"type": "array",
236+
"items": {
237+
"$ref": "#/definitions/ResourceDebugId"
238+
},
239+
"description": "Mapping of profiler resources to their debug IDs for source map deobfuscation.",
240+
"readOnly": true
241+
},
215242
"frames": {
216243
"type": "array",
217244
"items": {

schemas/session-replay/mobile/wireframe-schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
},
2323
{
2424
"$ref": "webview-wireframe-schema.json"
25+
},
26+
{
27+
"$ref": "embedded-content-wireframe-schema.json"
2528
}
2629
]
2730
}

schemas/session-replay/mobile/wireframe-update-mutation-schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
},
2323
{
2424
"$ref": "webview-wireframe-update-schema.json"
25+
},
26+
{
27+
"$ref": "embedded-content-wireframe-update-schema.json"
2528
}
2629
]
2730
}

0 commit comments

Comments
 (0)