Measuring View Renders and Helper methods in Ruby on Rails

Hi,

I have a rails 3.0.11 app which works great with Miniprofiler, However I would like to measure the render times of parts of the views, as well as helper methods.

I have tried to use the same code to measure the controller functions (HAML-ized in my case) but the results did not show in the traces.

- Rack::MiniProfiler.step("helper method trace") do
 = calling_helper_method

Any ideas would be very much appreciated.

Regards

Mark

That should be working, I bet what is happening is that it is taking so little time it is being treated as “trivial”

Try clicking the “show trivial” button at the bottom of the page.