Skip to content

Commit 7971985

Browse files
committed
05/01: add explanation draft
1 parent 9ce03dd commit 7971985

File tree

1 file changed

+8
-0
lines changed
  • exercises/05.performance/01.solution.profiling-slow-tests

1 file changed

+8
-0
lines changed

exercises/05.performance/01.solution.profiling-slow-tests/README.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ Duration 2.19s (transform 16ms, setup 0ms, collect 10ms, tests 2.00s, environme
1212
```
1313

1414
This is a good overlook at which areas of your test take how much time. Understanding what each area does sets up your map for future debugging.
15+
16+
## Step 2. Use the profiler
17+
18+
```sh
19+
npm i vitest-profiler --save-dev
20+
```
21+
22+
## Step 3. Analyze the generated CPU/heap profiles

0 commit comments

Comments
 (0)