From 0e76d753bd3ce6a92d99d49ed908f7c0d419f2fc Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Tue, 25 Feb 2025 08:37:51 -0600 Subject: [PATCH] Replace StackProf with Vernier for performance profiling --- Gemfile | 2 +- Gemfile.lock | 4 ++-- config/initializers/sentry.rb | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 11746759..247a4849 100644 --- a/Gemfile +++ b/Gemfile @@ -29,7 +29,7 @@ gem "hotwire_combobox", github: "josefarias/hotwire_combobox", ref: "b827048a830 gem "good_job" # Error logging -gem "stackprof" +gem "vernier" gem "rack-mini-profiler" gem "sentry-ruby" gem "sentry-rails" diff --git a/Gemfile.lock b/Gemfile.lock index fa67746a..5ff46a2a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -470,7 +470,6 @@ GEM simplecov_json_formatter (0.1.4) smart_properties (1.17.0) sorbet-runtime (0.5.11813) - stackprof (0.2.27) stimulus-rails (1.3.4) railties (>= 6.0.0) stringio (3.1.3) @@ -501,6 +500,7 @@ GEM useragent (0.16.11) vcr (6.3.1) base64 + vernier (1.5.0) web-console (4.2.1) actionview (>= 6.0.0) activemodel (>= 6.0.0) @@ -579,13 +579,13 @@ DEPENDENCIES sentry-rails sentry-ruby simplecov - stackprof stimulus-rails stripe tailwindcss-rails turbo-rails tzinfo-data vcr + vernier web-console webmock diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 19ad34e4..fffac479 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -14,5 +14,7 @@ if ENV["SENTRY_DSN"].present? # of sampled transactions. # We recommend adjusting this value in production. config.profiles_sample_rate = 0.5 + + config.profiler_class = Sentry::Vernier::Profiler end end