Commit fe7ec1e
committed
Tracing work
* Fix: `E` events need to have the same information that is on the
corresponding `B` events. (Superseded below.)
* Use `I` (not `i`) for instant events, so they show in devtools
too. (Though they don't go through the flame chart as they do in
`about://tracing`, so they're not nearly as useful.)
* Abstract the code that writes the records in a single `writeEvent`
local function.
* Make `args` optional, and default to `undefined` (which will not add
them) at all.
* Drop the `{ "ts": ... }` wrapper around the `args`, after verifying
that having arguments with names like `begin`, `end`, `pos`, `id`
doesn't interfere with either UIs.
* Add `tracing.push`/`tracing.pop` for complete events, change a few
`.begin`/`.end` to use these. (The caveat is that until there's an exit
handler to dump unterminated events, these won't show in the dump. When
that's done the push/pop variant can be used everywhere.)
* Add meta lines to name the process and the thread, and a line that
avoids the warning when opening in devtools.1 parent 5d021b4 commit fe7ec1eCopy full SHA for fe7ec1e
7 files changed
+76-58Lines changed: 76 additions & 58 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
174 | 174 | |
175 | 175 | |
176 | 176 | |
177 | | - |
| 177 | + |
| 178 | + |
178 | 179 | |
179 | 180 | |
180 | 181 | |
181 | 182 | |
182 | 183 | |
183 | 184 | |
184 | | - |
| 185 | + |
185 | 186 | |
186 | 187 | |
187 | 188 | |
|
Collapse file
+11-10Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17272 | 17272 | |
17273 | 17273 | |
17274 | 17274 | |
17275 | | - |
| 17275 | + |
17276 | 17276 | |
17277 | | - |
| 17277 | + |
17278 | 17278 | |
17279 | 17279 | |
17280 | 17280 | |
| ||
18529 | 18529 | |
18530 | 18530 | |
18531 | 18531 | |
18532 | | - |
| 18532 | + |
18533 | 18533 | |
18534 | 18534 | |
18535 | 18535 | |
| ||
18564 | 18564 | |
18565 | 18565 | |
18566 | 18566 | |
18567 | | - |
| 18567 | + |
18568 | 18568 | |
18569 | 18569 | |
18570 | 18570 | |
| ||
30979 | 30979 | |
30980 | 30980 | |
30981 | 30981 | |
30982 | | - |
| 30982 | + |
30983 | 30983 | |
30984 | 30984 | |
30985 | 30985 | |
| ||
30989 | 30989 | |
30990 | 30990 | |
30991 | 30991 | |
30992 | | - |
| 30992 | + |
30993 | 30993 | |
30994 | 30994 | |
30995 | 30995 | |
| ||
33780 | 33780 | |
33781 | 33781 | |
33782 | 33782 | |
33783 | | - |
| 33783 | + |
33784 | 33784 | |
33785 | 33785 | |
33786 | | - |
| 33786 | + |
33787 | 33787 | |
33788 | 33788 | |
33789 | 33789 | |
| ||
36854 | 36854 | |
36855 | 36855 | |
36856 | 36856 | |
36857 | | - |
| 36857 | + |
| 36858 | + |
36858 | 36859 | |
36859 | 36860 | |
36860 | 36861 | |
36861 | 36862 | |
36862 | | - |
| 36863 | + |
36863 | 36864 | |
36864 | 36865 | |
36865 | 36866 | |
|
Collapse file
+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
300 | 300 | |
301 | 301 | |
302 | 302 | |
303 | | - |
| 303 | + |
304 | 304 | |
305 | | - |
| 305 | + |
306 | 306 | |
307 | | - |
| 307 | + |
308 | 308 | |
309 | | - |
| 309 | + |
310 | 310 | |
311 | | - |
| 311 | + |
312 | 312 | |
313 | | - |
| 313 | + |
314 | 314 | |
315 | 315 | |
316 | 316 | |
|
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
614 | 614 | |
615 | 615 | |
616 | 616 | |
617 | | - |
| 617 | + |
| 618 | + |
618 | 619 | |
619 | 620 | |
620 | 621 | |
| ||
629 | 630 | |
630 | 631 | |
631 | 632 | |
632 | | - |
| 633 | + |
633 | 634 | |
634 | 635 | |
635 | 636 | |
|
Collapse file
+9-6Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
780 | 780 | |
781 | 781 | |
782 | 782 | |
783 | | - |
| 783 | + |
| 784 | + |
784 | 785 | |
785 | 786 | |
786 | 787 | |
| ||
1032 | 1033 | |
1033 | 1034 | |
1034 | 1035 | |
1035 | | - |
| 1036 | + |
1036 | 1037 | |
1037 | 1038 | |
1038 | 1039 | |
| ||
1590 | 1591 | |
1591 | 1592 | |
1592 | 1593 | |
1593 | | - |
| 1594 | + |
| 1595 | + |
1594 | 1596 | |
1595 | 1597 | |
1596 | 1598 | |
| ||
1603 | 1605 | |
1604 | 1606 | |
1605 | 1607 | |
1606 | | - |
| 1608 | + |
1607 | 1609 | |
1608 | 1610 | |
1609 | 1611 | |
| ||
1664 | 1666 | |
1665 | 1667 | |
1666 | 1668 | |
1667 | | - |
| 1669 | + |
| 1670 | + |
1668 | 1671 | |
1669 | | - |
| 1672 | + |
1670 | 1673 | |
1671 | 1674 | |
1672 | 1675 | |
|
Collapse file
+42-30Lines changed: 42 additions & 30 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
50 | 58 | |
51 | 59 | |
52 | 60 | |
| ||
58 | 66 | |
59 | 67 | |
60 | 68 | |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
| 69 | + |
66 | 70 | |
67 | 71 | |
68 | 72 | |
| ||
88 | 92 | |
89 | 93 | |
90 | 94 | |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
| 95 | + |
96 | 96 | |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
101 | 108 | |
102 | 109 | |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
| 110 | + |
| 111 | + |
| 112 | + |
108 | 113 | |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
113 | 124 | |
114 | 125 | |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
| 126 | + |
| 127 | + |
| 128 | + |
119 | 129 | |
120 | | - |
121 | 130 | |
122 | | - |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
123 | 135 | |
124 | 136 | |
125 | 137 | |
|
Collapse file
src/compiler/transformer.ts
Copy file name to clipboardExpand all lines: src/compiler/transformer.ts+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
223 | 223 | |
224 | 224 | |
225 | 225 | |
226 | | - |
| 226 | + |
227 | 227 | |
228 | | - |
| 228 | + |
229 | 229 | |
230 | 230 | |
231 | 231 | |
|
0 commit comments