1.8.0
-
Measure easily any Ruby method:
class Model def self.foo # ... end def bar # ... end RorVswild.measure(method(:foo)) RorVswild.measure(instance_method(:bar)) end
-
Time garbage collector
A section with the kind
gc
measures how long the GC ran during a request or a job. All GC executions are added together in a single section. For each section, the time spent in the GC is substracted.It might not be listed for all requests and jobs, since the GC is triggered when Ruby is running out of memory. You can force that in development by calling
GC.start
.From Ruby 3.1 it is enabled by default via and the agent uses
GC.total_time
. Before Ruby 3.1 the agent usesGC::Profiler.total_time
and it must be enabled withGC::Profiler.enable
. -
Store requests, jobs and errors into the local profiler
Even after restarting the server, past requests, jobs and error are still viewable from the local profiler. Upto the last 100 entries are stored per type. They are stored into JSON files located in tmp directory.