Skip to content

Commit 051558e

Browse files
committed
Update require profiling docs
* --cpusampler.Mode=roots is not needed, the metric targets are never inlined.
1 parent 3c7e171 commit 051558e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/contributor/profiling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The `--metrics-profile-require` option can be used to profile the time used for
8282

8383
For example, the `summary` view provides an overview of where time is spent:
8484
```
85-
$ jt ruby --experimental-options --cpusampler --cpusampler.Mode=roots --metrics-profile-require=summary -e 'require "rubygems"' |& grep "metrics "
85+
$ jt ruby --experimental-options --cpusampler --metrics-profile-require=summary -e 'require "rubygems"' |& grep "metrics "
8686
metrics execute | 1122ms 99.6% | 0.0% || 212ms 18.8% | 0.0% | (metrics)~1:0
8787
metrics parsing | 71ms 6.3% | 0.0% || 71ms 6.3% | 0.0% | (metrics)~1:0
8888
metrics translating | 60ms 5.3% | 0.0% || 60ms 5.3% | 0.0% | (metrics)~1:0
@@ -92,4 +92,4 @@ $ jt ruby --experimental-options --cpusampler --cpusampler.Mode=roots --metrics-
9292

9393
This feature can also be used to generate a flame graph with detailed require timings:
9494

95-
`$ jt profile --experimental-options --cpusampler --cpusampler.Mode=roots --metrics-profile-require=detail -e 'require "rubygems"'`
95+
`$ jt profile --metrics-profile-require=detail -e 'require "rubygems"'`

0 commit comments

Comments
 (0)