Questions tagged [rack-mini-profiler]

27 questions
1
vote
0 answers

Getting Rack Mini Profiler to work in a React application

I have followed the instructions on the github documentation (https://github.com/MiniProfiler/rack-mini-profiler) The speed badge is showing on the rails generated FE (localhost:3000 that is not public facing) but I'm not sure how to implement it…
izzo
  • 11
  • 1
1
vote
1 answer

Rack mini profiler error in heroku even when gem is removed in gemfile

I'm getting this error when I push to heroku master: remote: -----> Installing node-v12.16.2-linux-x64 remote: -----> Installing yarn-v1.22.4 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: …
1
vote
1 answer

Dealing with information overload for rack mini profiler flamegraph

The flamegraph created by rack mini profiler has a lot of information, but I'm having difficulty dealing with it all, because of the large number of layers involved: Is it possible to hide the layers involving third-party gems, or display the…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
1
vote
0 answers

Integrate Rack Mini Profiler gem into Rails Asset Pipeline

I am using or rather want to use the Rack Mini Profiler gem in an Rails-app with an asset pipeline. My Problem is, that since this gem is not meant to be integrated in an app with a pipeline, the static files from it aren't loaded, especially the…
stiller_leser
  • 1,512
  • 1
  • 16
  • 39
1
vote
0 answers

How to detect if MiniProfiler is enabled or disabled in Ruby on Rails?

In my Rails 4 app I created these two helper functions: def link_to_switch_off_miniprofiler link_to "OFF", "?pp=disable" end def link_to_switch_on_miniprofiler link_to "ON", "?pp=enable" end Is there any way to detect if MiniProfiler is…
Tintin81
  • 9,821
  • 20
  • 85
  • 178
1
vote
1 answer

Rack::MiniProfiler not capturing Sequel queries in Sinatra app

I am trying to profile the queries in my Sinatra app, which uses the Sequel ORM and MySql, through the mysql2 adapter. I'm using Rack::MiniProfiler, and the profiler seems to be working except it is not showing any queries, even though there are…
Jonah
  • 15,806
  • 22
  • 87
  • 161
1
vote
1 answer

disable rack-mini-profiler in resque worker

Does anyone know how to disable rack-mini-profiler in my resque worker? I'm running on heroku so the environment is identical to my web server, however in my resque worker I don't want mini-profiler to instrument my database calls (it errors out…
Dmitriy Likhten
  • 143
  • 1
  • 7
0
votes
0 answers

Rack Mini Profiler fails build in staging and production

I am trying to use ‘rack-mini-profiler’ gem for Ruby on Rails in production or staging, but it keeps failing during the image build When running the db migration step of the image I get the error: SystemStackError: stack level too deep . When trying…
0
votes
1 answer

How to determine the cause of a delay before an action is hit in my Rails app?

I've come to a dead-end with my troubleshooting, and I'm really hoping someone can help. I'm using rack-mini-profiler to help locate a potential memory leak in my Rails website. I narrowed it down to the method that is being called. High-level…
Kyle
  • 15
  • 4
0
votes
1 answer

Activerecord doen't release memory after build files

I created a controller function for build a backup of database or some part of it, but after created the files e sent them, the allocated memory doesn't released. The memory use report made with rack-mini-profiler gem show that the most part of…
0
votes
0 answers

Optimize Rails page loading time with Mini-profiler (or other gem etc.)?

I have a typical rails app with partials to load nav bars etc. My mini-profiler shows one of the partials taking way more time to render vs the rest. Can I use mini-profiler to dig into the rendering of these to see where the time being taken…
Dan Tappin
  • 2,692
  • 3
  • 37
  • 77
0
votes
1 answer

Rack-mini-profiler gem installation

I am trying to implement a gem called rack-mini-profiler, where while running the server I got the following errors, which are because of adding configuration options in config/initializers/mini_profiler.rb as in its documentation: 1. undefined…
Sap
  • 235
  • 1
  • 15
1
2