You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add startLine, startColumn, sourceMapURL and rename uuid to id in source table (#5882)
The backend side of this PR:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1999953
- https://bugzilla.mozilla.org/show_bug.cgi?id=2016667
This PR improves the source table overall by:
- Adding startLine and startColumn to the source table. This is going to
be used for showing correct line numbers in the source view when the
source is coming from an inline script. And also it will be useful for
source map/prettify in the future.
- Adding sourceMapURL if the source contains this information. This is
needed for us implement the source map resolution.
- Renaming `uuid` field to `id`. This field was initially containing
uuid fields, but they were replaced to contain hashes instead. It's
better to have an implementation agnostic name for this field in
general.
Copy file name to clipboardExpand all lines: docs-developer/CHANGELOG-formats.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,14 @@ Note that this is not an exhaustive list. Processed profile format upgraders can
6
6
7
7
## Processed profile format
8
8
9
+
### Version 61
10
+
11
+
The `SourceTable` in `profile.shared.sources` was updated:
12
+
13
+
- The `uuid` field was renamed to `id`.
14
+
- Two new fields `startLine` and `startColumn` were added (1-based). These describe the start position of the script within its resource, useful for inline scripts. If the source covers the entire file, use `(1, 1)`.
15
+
- A new `sourceMapURL` field was added. Use `null` for entries with no source map URL.
16
+
9
17
### Version 60
10
18
11
19
The following tables have moved into `profile.shared`: `stackTable`, `frameTable`, `funcTable`, `resourceTable`, `nativeSymbols`. They are no longer per-thread.
@@ -137,6 +145,14 @@ Older versions are not documented in this changelog but can be found in [process
137
145
138
146
## Gecko profile format
139
147
148
+
### Version 34
149
+
150
+
The `SourceTable` schema was updated:
151
+
152
+
- The `uuid` field was renamed to `id`.
153
+
- Two new fields `startLine` and `startColumn` were added (1-based). If the source covers the entire file, use `(1, 1)`.
154
+
- A new `sourceMapURL` field was added. It can be omitted if it is the last element in the row and there is no source map URL.
155
+
140
156
### Version 33
141
157
142
158
The `sources` field in the Gecko profile format is now non-optional. An upgrader was added that creates an empty `SourceTable` for profiles that don't have one.
0 commit comments