Closed danny-pflughoeft closed 9 months ago
As a workaround, I add this code to a file in config/initializers. So far it's working fine.
module Rack
class MiniProfiler
module StackProf
def self.run(mode:, raw:, aggregate:, interval:)
::StackProf.run(
mode: mode,
raw: raw,
aggregate: aggregate,
interval: interval,
ignore_gc: true
) do
yield
end
end
end
end
end
In memory-heavy apps, the GC frames make the flamegraph basically unusable
StackProf has an option to fix this:
ignore_gc
. However it's not exposed by rack-mini-profiler