Is there a port mvc-mini-profiler for Rails?

前端 未结 4 1965
时光说笑
时光说笑 2021-01-30 13:49

I\'m a big fan of the MiniProfiler created by Jarrod Dixon and the Stack Overflow team for ASP.NET. Is there a port of it for Rails applications?

Since the core of the

相关标签:
4条回答
  • 2021-01-30 14:33

    Have you looked at Rails-Footnotes?

    "It displays footnotes in your application for easy debugging, such as sessions, request parameters, cookies, filter chain, routes, queries, etc.

    Even more, it contains links to open files directly in your editor including your backtrace lines."

    0 讨论(0)
  • 2021-01-30 14:41

    There's NewRelic's "Developer Mode".

    https://support.newrelic.com/help/kb/ruby/developer-mode

    It's not a 1:1 but it does log actions, queries and even show you the source that executed queries.

    They also have the source available at: https://github.com/newrelic/rpm

    0 讨论(0)
  • 2021-01-30 14:45

    Funny that you ask that, turns out we have been busy porting it to Ruby.

    See:

    • https://rubygems.org/gems/rack-mini-profiler
    • The website http://miniprofiler.com and
    • The github https://github.com/SamSaffron/MiniProfiler/tree/master/Ruby
    0 讨论(0)
  • 2021-01-30 14:47

    Rackbug is a Rack application, adds a diagnostics toolbar to Rack apps, it looks similar with MiniProfiler.

    enter image description here

    Take a look at features list:

    • Password-based security
    • IP-based security
    • Rack::Bug instrumentation/reporting is broken up into panels.
      • Panels in default configuration:
        • Rails Info
        • Timer
        • Request Variables
        • SQL
        • Active Record
        • Cache
        • Templates
        • Log
        • Memory
      • Other bundled panels:
        • Redis
        • Sphinx
      • The API for adding your own panels is simple and powerful

    It can work on every environment you specified with restriction by IP address

    0 讨论(0)
提交回复
热议问题