Instrumenting Thread Stalling in Ruby Applications | byroot’s blog
21-Feb-2025 16
In the above example, the instrumentation tells you how long it took for the database to answer your query, but may also include the time needed for the Ruby thread to re-acquire the GVL, or perhaps the Ruby GC to run, or even the operating system’s scheduler to resume the process.
Thankfully, in recent years Ruby added some new APIs that help measure these things.
Instrumenting Thread Stalling in Ruby Applications | byroot’s blog #ruby #rubydeveloper #rubyonrails #Instrumenting #Thread #Stalling #Applications #byroot’s #applications #blog #thread https://rubyonrails.ba/link/instrumenting-thread-stalling-in-ruby-applications-byroot-s-blog