|
3 | 3 | | Default | Advanced |
|
4 | 4 | |----------------------------------------------------------|----------------------------------------------------------------------------|
|
5 | 5 | |  |  |
|
| 6 | +| `NX_DAEMON=false NX_PERF_LOGGING=true NX_CACHE=false nx show projects` | `node ./nx-advanced-profile.js --args=show,projects` | |
6 | 7 |
|
7 | 8 | ## Main Process Logging
|
8 | 9 |
|
|
12 | 13 | 3. Open Chrome browser
|
13 | 14 | 1. Open DevTools (F12)
|
14 | 15 | 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. |
16 | 17 |
|
17 | 18 | 
|
18 | 19 |
|
|
21 | 22 | 1. Run `node ./tools/nx-advanced-profile.postinstall.js`. This modifies the Nx sourcecode to be patched. (Don't forget
|
22 | 23 | to revert your changes)
|
23 | 24 | 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. |
25 | 26 |
|
26 | 27 | 
|
27 | 28 |
|
28 | 29 | ## Terminal Arguments
|
29 | 30 |
|
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 | |
36 | 38 |
|
37 | 39 | **Example**
|
38 | 40 |
|
|
0 commit comments