From b1499f94f9ea13ecfeca50e5961bcf23f147e89d Mon Sep 17 00:00:00 2001 From: "Ben Sheldon [he/him]" Date: Tue, 17 Dec 2024 08:39:57 -0800 Subject: [PATCH] Add `require "vernier/autorun"` instructions to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7abe175..361bc94 100644 --- a/README.md +++ b/README.md @@ -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