Skip to content

Commit d546ec7

Browse files
committed
update docs
1 parent 612bf83 commit d546ec7

File tree

2 files changed

+10
-45
lines changed

2 files changed

+10
-45
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
| Default | Advanced |
44
|----------------------------------------------------------|----------------------------------------------------------------------------|
55
| ![flame-charts.png](./tools/imgs/nx-default-profile.png) | ![flame-charts.png](./tools/imgs/main-and-forked-process-flame-charts.png) |
6+
| `NX_DAEMON=false NX_PERF_LOGGING=true NX_CACHE=false nx show projects` | `node ./nx-advanced-profile.js --args=show,projects` |
67

78
## Main Process Logging
89

@@ -12,7 +13,7 @@
1213
3. Open Chrome browser
1314
1. Open DevTools (F12)
1415
2. Go to the `Performance` tab
15-
4. Drag and drop the `./.nx-profiling/tools/nx-advanced-profile.bin.js` file into the DevTools window.
16+
4. Drag and drop the `<process>.profile.json` file into the DevTools window.
1617

1718
![flame-charts.png](./tools/imgs/main-process-flame-charts.png)
1819

@@ -21,18 +22,19 @@
2122
1. Run `node ./tools/nx-advanced-profile.postinstall.js`. This modifies the Nx sourcecode to be patched. (Don't forget
2223
to revert your changes)
2324
2. Run `node ./tools/nx-advanced-profile.bin.js --noPatch`. (As it is now patched inside the file directly)
24-
3. Drag and drop the `./.nx-profiling/tools/nx-advanced-profile.bin.js` file into the DevTools window.
25+
3. Drag and drop the `<process>.profile.json` file into the DevTools window.
2526

2627
![flame-charts.png](./tools/imgs/main-and-forked-process-flame-charts.png)
2728

2829
## Terminal Arguments
2930

30-
| Option | Shorthand | Description |
31-
| ----------- | --------- | ----------------------------- |
32-
| `--verbose` | `-v` | Show verbose output |
33-
| `--noPatch` | `-p` | Don't patch the Nx sourcecode |
34-
| `--outDir` | `-d` | Output directory |
35-
| `--outFile` | `-f` | Output file |
31+
| Option | Shorthand | Description |
32+
|-------------|-----------|-----------------------------------------|
33+
| `--args` | | comma separated process args `-t,build` |
34+
| `--verbose` | `-v` | Show verbose output |
35+
| `--noPatch` | `-p` | Don't patch the Nx sourcecode |
36+
| `--outDir` | `-d` | Output directory |
37+
| `--outFile` | `-f` | Output file |
3638

3739
**Example**
3840

tools/README.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)