StimulusReflexProfiler
Provides profiling functionality for StimulusReflex. Heavily inspired by Rack Mini Profiler.
Currently implemented:
- Call Stack Profiling (Flamegraph)
Usage
Mount StimulusReflexProfiler as an engine in your routes.rb.
if Rails.env.development?
mount StimulusReflexProfiler::Engine, at: '/stimulus_reflex_profiler'
endhttp://localhost:3000/stimulus_reflex_profiler/flamegraph will now display the flamegraph of the last triggered Reflex (see above).
Installation
Add this line to your application's Gemfile:
gem 'stimulus_reflex_profiler'For call-stack profiling/flamegraphs add the following gems, too:
gem 'flamegraph'
gem 'stackprof'And then execute:
$ bundleContributing
Contribution directions go here.
License
The gem is available as open source under the terms of the MIT License.
