Skip to content

Commit

Permalink
Remove mention of --trace-ic in favor of dexnode
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Feb 2, 2024
1 parent 7003bce commit 43338c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,18 +718,18 @@ See the above section on [performance traces](#performance-tracing) and continue

### Profiling the Compiler

It is important to provide the team with diagnostic traces by running Node.js v10+ with the `--trace-ic` flag alongside TypeScript with the `--generateCpuProfile` flag:
You can provide the team with diagnostic traces by running `dexnode` alongside TypeScript with the `--generateCpuProfile` flag:

```sh
node --trace-ic ./node_modules/typescript/lib/tsc.js --generateCpuProfile profile.cpuprofile -p tsconfig.json
npm exec dexnode -- ./node_modules/typescript/lib/tsc.js --generateCpuProfile profile.cpuprofile -p tsconfig.json
```

Here `./node_modules/typescript/lib/tsc.js` can be replaced with any path to where your version of the TypeScript compiler is installed, and `tsconfig.json` can be any TypeScript configuration file.
`profile.cpuprofile` is an output file of your choice.

This will generate two files:

* `--trace-ic` will emit to a file of the `isolate-*-*-*.log` (e.g. `isolate-00000176DB2DF130-17676-v8.log`).
* `dexnode` will emit to a file of the `isolate-*-*-*.log` (e.g. `isolate-00000176DB2DF130-17676-v8.log`).
* `--generateCpuProfile` will emit to a file with the name of your choice. In the above example, it will be a file named `profile.cpuprofile`.

> ⚠ Warning: These files may include information from your workspace, including file paths and source code.
Expand Down

0 comments on commit 43338c5

Please sign in to comment.