Skip to content

Commit

Permalink
Add require "vernier/autorun" instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Dec 17, 2024
1 parent 8d12a8b commit b1499f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ starting profiler with interval 100 and allocation interval 10
written to /tmp/profile20241029-26525-dalmym.vernier.json.gz
```

#### Autorun

Vernier can be enabled globally within a Ruby script or application:

```ruby
require "vernier/autorun
```
For example, adding this to a Rails applications `config/application.rb` will enable Vernier during boot and output a recording when exited.
#### Block of code
``` ruby
Expand Down

0 comments on commit b1499f9

Please sign in to comment.