Skip to content

Commit b7c20c6

Browse files
committed
refactor: update measure readme
1 parent e99366b commit b7c20c6

File tree

1 file changed

+2
-24
lines changed
  • packages/cpu-prof/docs/case-study--nx-graph-time

1 file changed

+2
-24
lines changed

packages/cpu-prof/docs/case-study--nx-graph-time/Readme.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Case Study — Nx graph time
2-
1+
# Perf Audit Base — Nx graph time
32

43
## Tools and Setup
54

@@ -28,10 +27,9 @@ Use native Node.js CPU profiling to analyze where time is spent when calculating
2827

2928
The following commands are executed from the root of a Nx workspace:
3029
- `npx nx graph --file=nx-project-graph.json` - project graph generation
31-
- `npx nx graph --groupByFolder --file=nx-project-graph-grouped.json` - project graph with grouped folders
30+
- (TO EVALUATE) `npx nx graph --groupByFolder --file=nx-project-graph-grouped.json` - project graph with grouped folders
3231
- Remove plugins form nx.json, then run `npx nx graph --file=nx-project-graph-no-plugins.json` - project graph without plugins
3332
- `npx nx graph --view=tasks --targets=<targets> --file=nx-task-graph-build.json` - task graph for specific target
34-
- `npx nx graph --affected --base=main --file=/tmp/nx-affected-graph-main.json` - affected graph calculation for specified base
3533

3634
### Project Graph (nx graph)
3735

@@ -113,26 +111,6 @@ npx -y @push-based/cpu-prof \
113111
node ./node_modules/nx/bin/nx.js graph --view=tasks --targets=<targets> --file=nx-task-graph-build.json
114112
```
115113

116-
117-
### Affected Graph (base=main)
118-
119-
1. Save setup specification:
120-
121-
```bash
122-
mkdir -p ./profiles/nx-affected-graph-main && \
123-
nx reset && nx report > ./profiles/nx-affected-graph-main/nx-report.md
124-
```
125-
126-
2. Measure the affected graph calculation for the specified base:
127-
128-
```bash
129-
# Prerequisite (once): install local deps so ./node_modules/.bin/nx exists
130-
NX_DAEMON=false NX_CACHE=false \
131-
npx -y @push-based/cpu-prof \
132-
--cpu-prof-dir ./profiles/nx-affected-graph-main \
133-
node ./node_modules/nx/bin/nx.js graph --affected --base=main --file=/tmp/nx-affected-graph-main.json
134-
```
135-
136114
---
137115

138116
### Project Graph

0 commit comments

Comments
 (0)