The logs for Rails are great, but they only break down the time for rendering and SQL as a whole and also the individual SQL queries. I have some actions where there is a large amount of work done in the controller and/or model. I''d like to see some sort of profiling / performance data on the code to help pinpoint what I''ll need to tweak to speed up the action. Is there any standard way of doing this? Can it be done? Thanks, Chris _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Williams, Chris wrote:> The logs for Rails are great, but they only break down the time for > rendering and SQL as a whole and also the individual SQL queries. > > I have some actions where there is a large amount of work done in the > controller and/or model. I’d like to see some sort of profiling / > performance data on the code to help pinpoint what I’ll need to tweak to > speed up the action. > > Is there any standard way of doing this? Can it be done?I think you might be able to run the standard Ruby profiler on dispatch.cgi (run dispatch.cgi from the command line). Don''t know if there''s a more elegant way of doing it. -- Marten Veldthuis