Hi, is there a profiling gem/plugin for Ruby on Rails? That is, where I can then specify the point in a request I want to act as milestones points for a time to be taken, and place them strategically. Then ideally the plugin then works out and displays how the overall response time was made up... Tks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Kristian Hellquist
2009-Dec-15 14:08 UTC
Re: is there a profiling gem/plugin for Ruby on Rails?
I haven''t tested this myself, but it looks promising: http://timetobleed.com/memprof-a-ruby-level-memory-profiler/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The standard rubyish profiler is ruby-prof http://ruby-prof.rubyforge.org/ Not sure if it exactly matches your requirements, but it''s quite powerful. You can setup the start/stop points in your code, then run the request and have it spit out the results into a file. You can set whether it''s profiling wall-time or processer-cycles or even (I think) memory usage. You can even generate valgrind-style files that can be displayed in programs like kcachegrind to easily visualise where the program''s spending its time. Cheers, Taryn On Dec 15, 11:34 am, greghauptmann <greg.hauptm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > is there a profiling gem/plugin for Ruby on Rails? > > That is, where I can then specify the point in a request I want to act > as milestones points for a time to be taken, and place them > strategically. Then ideally the plugin then works out and displays how > the overall response time was made up... > > Tks-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
greghauptmann
2009-Dec-15 21:05 UTC
Re: is there a profiling gem/plugin for Ruby on Rails?
So the type of thing I was after was the ability to say: * define checkpoints in code for the profile, but with some indication of hierachy for later reporting, e.g. - profile_point(:start, "main") - profile_point(:start, "validations") - profile_point(:start, "validation 1") - profile_point(:end, "validation 1") # options ends - profile_point(:start, "validation 2") - profile_point(:end, "validation 2") # options ends - profile_point(:start, "database stuff") - profile_point(:end, "database stuff") - profile_point(:end, "main") * so then you can get timings for each, e.g. main=30sec [xx%] validations=20sec [xx%] validation1=5sec [xx%] validation2=15sec [xx%] database_stuff = 10 sec [xx%] So this type of thing. Probably not much work to do, but I was wondering if there was a library that let you customize the timing points you wanted to profile. Another valid add would be getting averages for these values over mulitiple calls. Any existing gems/plugins/libraries that would do this? Tks On Dec 16, 1:32 am, taryneast <taryne...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The standard rubyish profiler is ruby-profhttp://ruby-prof.rubyforge.org/ > > Not sure if it exactly matches your requirements, but it''s quite > powerful. > > You can setup the start/stop points in your code, then run the request > and have it spit out the results into a file. You can set whether it''s > profiling wall-time or processer-cycles or even (I think) memory > usage. > > You can even generate valgrind-style files that can be displayed in > programs like kcachegrind to easily visualise where the program''s > spending its time. > > Cheers, > Taryn > > On Dec 15, 11:34 am, greghauptmann <greg.hauptm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > is there a profiling gem/plugin for Ruby on Rails? > > > That is, where I can then specify the point in a request I want to act > > as milestones points for a time to be taken, and place them > > strategically. Then ideally the plugin then works out and displays how > > the overall response time was made up... > > > Tks-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Seemingly Similar Threads
- how to select "no date" in activeScaffold
- why doesn't "config.time_zone = 'location'" ensure Time.now gives the time back in this time zone???
- second assert_tag failling in rails integration test
- explorer.exe 100% CPU, again
- [LLVMdev] Using LLVM to serialize object state -- and performance