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
Starting from TypeScript 4.1.0, you can profile long type checks by
350
+
When using TypeScript 4.1.x in `build` mode you can profile long type checks by
351
351
setting "generateTrace" compiler option. This is an instruction from [microsoft/TypeScript#40063](https://github.com/microsoft/TypeScript/pull/40063):
352
352
353
-
1. Set "generateTrace": "{folderName}" in your `tsconfig.json`
354
-
2. Look in the resulting folder. If you used build mode, there will be a `legend.json` telling you what went where.
355
-
Otherwise, there will be `trace.json` file and `types.json` files.
353
+
1. Set "generateTrace": "{folderName}" in your `tsconfig.json` (under `compilerOptions`)
354
+
2. Look in the resulting folder. There will be a `legend.json` telling you what went where.
356
355
3. Navigate to [edge://tracing](edge://tracing) or [chrome://tracing](chrome://tracing) and load `trace.json`
357
356
4. Expand Process 1 with the little triangle in the left sidebar
358
357
5. Click on different blocks to see their payloads in the bottom pane
0 commit comments