Add stackprof for profiling

So you can do something like this:

```ruby
  require "stackprof"

  report = StackProf.run(mode: :wall, interval: 100) do
    Account.find_by(external_account_id: 123)
  end

  StackProf::Report.new(report).print_text
```
This commit is contained in:
Donal McBreen
2026-02-12 15:35:26 +00:00
parent ee4511180a
commit 1506624cd3
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@ gem "useragent", bc: "useragent"
# Operations
gem "autotuner"
gem "mission_control-jobs"
gem "stackprof"
gem "benchmark" # indirect dependency, being removed from Ruby 3.5 stdlib so here to quash warnings
group :development, :test do
+2
View File
@@ -437,6 +437,7 @@ GEM
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
ostruct
stackprof (0.2.27)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.2.0)
@@ -529,6 +530,7 @@ DEPENDENCIES
solid_cache (~> 1.0)
solid_queue (~> 1.2)
sqlite3 (>= 2.0)
stackprof
stimulus-rails
thruster
trilogy (~> 2.9)
+2
View File
@@ -558,6 +558,7 @@ GEM
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
ostruct
stackprof (0.2.27)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.2.0)
@@ -686,6 +687,7 @@ DEPENDENCIES
solid_cache (~> 1.0)
solid_queue (~> 1.2)
sqlite3 (>= 2.0)
stackprof
stimulus-rails
stripe (~> 18.0)
thruster