Questions tagged [rack-mini-profiler]

27 questions
55
votes
3 answers

How to disable Rack-Mini-Profiler temporarily?

I'm using rack mini profiler in rails just fine, but during some coding sessions especially where I'm working on a lot of different client side code, it gets in the way. (mainly in my client side debugging tools network graphs, etc.) I'm trying to…
Dave Sanders
  • 3,135
  • 4
  • 33
  • 43
21
votes
5 answers

How to profile a rails controller that returns a json response with rack-mini-profiler?

I am using rack-mini-profiler in my rails 3.2 project. In gemfile: gem 'rack-mini-profiler' Everything works great. But my application is mostly a set of json endpoints. So while it is very useful to be to able to inspect the performance of html…
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
14
votes
1 answer

rack-mini-profiler is showing profiling static files

I'm using rack-mini-profiler after watching it's railscast (http://railscasts.com/episodes/368-miniprofiler). I added it to my Gemfile: gem 'rack-mini-profiler' Installed it using bundler and started my dev environment using "rails s". The…
razenha
  • 7,660
  • 6
  • 37
  • 53
13
votes
1 answer

Measuring rails json api with rack mini profiler

How do we get rack-mini-profiler to show in a rails json api? I believe this was asked here: How to profile a rails controller that returns a json response with rack-mini-profiler? but the only answer is to try it out on an html file. How do we see…
user1848902
  • 165
  • 6
8
votes
1 answer

Why can't I deauthorize Rack-mini-profiler for non admin users

I am trying to install Rack-mini-profiler on my ROR application. I installed the gem and the profiler works great in development but I can't deauthorize specific requests for non admin users. I placed the following code in my ApplicationController…
Guy Sopher
  • 4,402
  • 4
  • 22
  • 36
5
votes
1 answer

How to move the Mini Profiler (ms) bubble to the Right Side in Rails

I have tried overriding CSS but am not able to move the bubble that shows up on the left to move to the right side. Is there any setting that I can change to achieve this in Rails 4?
Sankalp Singha
  • 4,461
  • 5
  • 39
  • 58
4
votes
2 answers

How to use rack-mini-profiler for ajax calls?

I managed to get rack-mini-profiler gem to run fine on the full pages we serve in our app. What I didn't manage is, how to directly get the data also for one of the calls we serve via ajax to another page. I found, that if I do the ajax call and…
Bruno E.
  • 1,284
  • 11
  • 16
4
votes
2 answers

Miniprofiler gem generating a lot of 404 errors

The Miniprofiler gem for rails is very handy. (github, railscast) However, I am getting a lot of 404 errors in my application: In the chrome console, tab network: Failed to load resource: the server responded with a status of 404 (Not Found)…
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
4
votes
1 answer

rack-mini-profiler at Heroku?

Question also asked over on miniprofiler forums. Saw a great railscast today about rack-mini-profiler gem, which is EXACTLY what I need right now to track down some performance issues. Works great in dev, but I really need it in production where…
Dave Sanders
  • 3,135
  • 4
  • 33
  • 43
3
votes
0 answers

Rack MiniProfiler not capturing sql queries in My Rails app

In our Project we have a lot of ActiveRecord models, we use Postgres as our DB Server and also MongoDB with mongoid 2.2 gem. I need to improve/optimize our project to reduce the number of SQL queries being executed I chose rack-mini-profiler gem to…
Minato
  • 4,383
  • 1
  • 22
  • 28
3
votes
2 answers

uninitialized constant Rack::MiniProfiler on staging

I must to enable rack-mini-profiler for dev and production. In ApplicationController I have: before_filter :miniprofiler def miniprofiler Rack::MiniProfiler.authorize_request #if current_user.admin? end In config/initializers/rack_profiler.rb if…
3
votes
3 answers

how to get mini-profiler to start in rails

I've installed mini-profiler gem in a Rails 4 (rc1) application but when I load the application it's not showing the little window with load time statistics in the browser. According to the Railscast I'm watching, it should start working after…
Leahcim
  • 40,649
  • 59
  • 195
  • 334
2
votes
0 answers

Rack-Mini-Profiler analyze-memory

I analyze the memory of my app with rack-mini-profilers: ?pp=analyze-memory At the very first beginning of my analyzation I find this section: Total allocated: 11701453 bytes (143079 objects) Total retained: 1380491 bytes (15087 objects) allocated…
Jan
  • 12,992
  • 9
  • 53
  • 89
2
votes
2 answers

Rails Admin & Mini Profiler

I am using rack mini profiler in my Rails application. In addition, I am using Rails Admin as my admin tool. I am receiving the following message when looking at the dashboard: Model 'Mini-profiler-resources' could not be found Any clue on how to…
Dan Benjamin
  • 880
  • 1
  • 9
  • 25
2
votes
0 answers

Strange output "SELECT 1"

When I use rack-mini-profiler with my application (running ruby 1.9.3 p194, rails 3.2.8 and pg 0.14.0), I get very strange analysis outputs. Typically It will look something like this: /da/brugte-biler/Fiat/Multipla autouncle.dev on Mon, 27 Aug 2012…
Niels Kristian
  • 8,661
  • 11
  • 59
  • 117
1
2