Low commit activity in last 3 years
No release in over a year
A Rails engine with profiling options for StimulusReflex
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

StimulusReflexProfiler

Bildschirmfoto_2020-10-30_um_14_08_06

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'
end

http://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:

$ bundle

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.