File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 27
27
28
28
## Profiling
29
29
30
+ You should first install ` iron-node ` and / or ` devtool ` globally:
31
+
32
+ ```
33
+ $ npm install --global iron-node
34
+ $ npm install --global devtool
35
+ ```
36
+
30
37
In the root of a project using AVA, run:
31
38
32
39
```
33
40
$ iron-node node_modules/ava/profile.js <test-file>
41
+ # or
42
+ $ devtool node_modules/ava/profile.js <test-file>
34
43
```
35
44
36
- After ` iron-node ` has loaded, activate the Dev Tools profiling, and then hit <kbd >Cmd</kbd > <kbd >R</kbd > to rerun the tests.
45
+ Once the Dev Tools window has loaded, activate Memory or CPU profiling, and then hit <kbd >Cmd</kbd > <kbd >R</kbd > to rerun the tests.
46
+
47
+ As soon as the tests finish, stop the recording and inspect the profiler results.
48
+
49
+ A good introduction to CPU and Memory profiling can be found [ here] ( https://www.youtube.com/watch?v=KKwmdTByxLk )
50
+
51
+ You may also want to check out the Settings page in Dev Tools and enable one or more options in the Profiling section.
You can’t perform that action at this time.
0 commit comments