Commit c3abdc5
src: implement --trace-promises
This patch implements a debugging flag that dumps the current
stack trace when a promise is created or resolved. To reduce
noise we ignore before and after events (as the execution is
less interesting) and use the per-isolate hook to avoid extra
JS frames. This flag can assist work in reducing unnecessary
promise overhead.
PR-URL: #50899
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 7a8a2d5 commit c3abdc5Copy full SHA for c3abdc5
File tree
Expand file treeCollapse file tree
9 files changed
+82
-0
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
9 files changed
+82
-0
lines changedOpen diff view settings
Collapse file
+58Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
| 33 | + |
33 | 34 | |
34 | 35 | |
35 | 36 | |
| ||
55 | 56 | |
56 | 57 | |
57 | 58 | |
| 59 | + |
| 60 | + |
58 | 61 | |
59 | 62 | |
60 | 63 | |
61 | 64 | |
62 | 65 | |
63 | 66 | |
64 | 67 | |
| 68 | + |
65 | 69 | |
66 | 70 | |
67 | 71 | |
| ||
1839 | 1843 | |
1840 | 1844 | |
1841 | 1845 | |
| 1846 | + |
| 1847 | + |
| 1848 | + |
| 1849 | + |
| 1850 | + |
| 1851 | + |
| 1852 | + |
| 1853 | + |
| 1854 | + |
| 1855 | + |
| 1856 | + |
| 1857 | + |
| 1858 | + |
| 1859 | + |
| 1860 | + |
| 1861 | + |
| 1862 | + |
| 1863 | + |
| 1864 | + |
| 1865 | + |
| 1866 | + |
| 1867 | + |
| 1868 | + |
| 1869 | + |
| 1870 | + |
| 1871 | + |
| 1872 | + |
| 1873 | + |
| 1874 | + |
| 1875 | + |
| 1876 | + |
| 1877 | + |
| 1878 | + |
| 1879 | + |
| 1880 | + |
| 1881 | + |
| 1882 | + |
| 1883 | + |
| 1884 | + |
| 1885 | + |
| 1886 | + |
| 1887 | + |
| 1888 | + |
| 1889 | + |
| 1890 | + |
| 1891 | + |
| 1892 | + |
| 1893 | + |
| 1894 | + |
| 1895 | + |
| 1896 | + |
| 1897 | + |
| 1898 | + |
| 1899 | + |
1842 | 1900 | |
1843 | 1901 | |
1844 | 1902 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
934 | 934 | |
935 | 935 | |
936 | 936 | |
| 937 | + |
| 938 | + |
| 939 | + |
937 | 940 | |
938 | 941 | |
939 | 942 | |
| ||
1094 | 1097 | |
1095 | 1098 | |
1096 | 1099 | |
| 1100 | + |
1097 | 1101 | |
1098 | 1102 | |
1099 | 1103 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
| 31 | + |
31 | 32 | |
32 | 33 | |
33 | 34 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
264 | 264 | |
265 | 265 | |
266 | 266 | |
| 267 | + |
| 268 | + |
| 269 | + |
267 | 270 | |
268 | 271 | |
269 | 272 | |
|
Collapse file
+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
291 | 291 | |
292 | 292 | |
293 | 293 | |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
294 | 301 | |
295 | 302 | |
296 | 303 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
| 91 | + |
90 | 92 | |
91 | 93 | |
92 | 94 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
672 | 672 | |
673 | 673 | |
674 | 674 | |
| 675 | + |
| 676 | + |
| 677 | + |
| 678 | + |
675 | 679 | |
676 | 680 | |
677 | 681 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
179 | 179 | |
180 | 180 | |
181 | 181 | |
| 182 | + |
182 | 183 | |
183 | 184 | |
184 | 185 | |
|
Collapse file
test/parallel/test-process-env-allowed-flags-are-documented.js
Copy file name to clipboardExpand all lines: test/parallel/test-process-env-allowed-flags-are-documented.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
106 | 106 | |
107 | 107 | |
108 | 108 | |
| 109 | + |
| 110 | + |
109 | 111 | |
110 | 112 | |
111 | 113 | |
|
0 commit comments