So the new profiler in Rails 2.0 looks great - except I can''t figure out how to use the damn thing with my application. I have two unique things that might be preventing me from enjoying the profiler - My app requires a login - My app request a subdomain be present to function Has anyone worked with profiler that can help me out here, or perhaps link me to a good write up on the subject? I googled around, searched technorati, etc - but nothing was there to be found. Documentation on this effort seems to be non-existent, and cracking the source isn''t helping me much either. Someone point me in the right direction. -------------------- seth at subimage interactive ----- http://sublog.subimage.com ----- Cashboard - Estimates, invoices, and time tracking software - for free! http://www.getcashboard.com ----- Substruct - Open source RoR e-commerce software. http://dev.subimage.com/projects/substruct --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
To follow up, with a little help from #rubyonrails I figured out that you need to use integration test commands to get it running. Armed with that information, I''ve gotten a little further, but not much. I''m now getting some error that looks like s UTF-8 problem... http://pastie.caboo.se/pastes/131238 Help? On Dec 20, 2007 11:06 PM, subimage interactive <subimage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> So the new profiler in Rails 2.0 looks great - except I can''t figure out > how to use the damn thing with my application. > I have two unique things that might be preventing me from enjoying the > profiler > - My app requires a login > - My app request a subdomain be present to function > > Has anyone worked with profiler that can help me out here, or perhaps link > me to a good write up on the subject? I googled around, searched technorati, > etc - but nothing was there to be found. Documentation on this effort seems > to be non-existent, and cracking the source isn''t helping me much either. > > Someone point me in the right direction. > > -------------------- > seth at subimage interactive > ----- > http://sublog.subimage.com > ----- > Cashboard - Estimates, invoices, and time tracking software - for free! > http://www.getcashboard.com > ----- > Substruct - Open source RoR e-commerce software. > http://dev.subimage.com/projects/substruct >-- -------------------- seth at subimage interactive ----- http://sublog.subimage.com ----- Cashboard - Estimates, invoices, and time tracking software - for free! http://www.getcashboard.com ----- Substruct - Open source RoR e-commerce software. http://dev.subimage.com/projects/substruct --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 12/20/07, subimage interactive <subimage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> So the new profiler in Rails 2.0 looks great - except I can''t figure out how > to use the damn thing with my application. > > I have two unique things that might be preventing me from enjoying the > profiler > - My app requires a login > - My app request a subdomain be present to function > > Has anyone worked with profiler that can help me out here, or perhaps link > me to a good write up on the subject? I googled around, searched technorati, > etc - but nothing was there to be found. Documentation on this effort seems > to be non-existent, and cracking the source isn''t helping me much either. > > Someone point me in the right direction.The new request profiler is young and experimental still; thanks for giving it a spin. Write an integration script much like you would for integration tests. Example: test/performance/authorize_user_and_redirect_back.rb host! ''foo.com'' get ''/admin/posts/1'' follow_redirect! raise unless path == ''/login'' post ''/login'', :username => ''john'', :password => ''doe'' follow_redirect! raise unless path == ''/admin/posts/1'' then run ./script/performance/request test/performance/authorize_user_and_redirect_back.rb and check out the generated html call graph. The call graph is hard to interpret at first. We''ll have to work with the ruby-prof guys to improve that. Best, jeremy --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Jeremy for the help here and on IRC :) Anything that can be done to improve the readability of the graph would be really nice. As it is, I feel like I''m looking at a puzzle that I don''t yet know how to figure out... On Dec 21, 2007 3:24 PM, Jeremy Kemper <jeremy-w7CzD/W5Ocjk1uMJSBkQmQ@public.gmane.org> wrote:> > On 12/20/07, subimage interactive <subimage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > So the new profiler in Rails 2.0 looks great - except I can''t figure out > how > > to use the damn thing with my application. > > > > I have two unique things that might be preventing me from enjoying the > > profiler > > - My app requires a login > > - My app request a subdomain be present to function > > > > Has anyone worked with profiler that can help me out here, or perhaps > link > > me to a good write up on the subject? I googled around, searched > technorati, > > etc - but nothing was there to be found. Documentation on this effort > seems > > to be non-existent, and cracking the source isn''t helping me much > either. > > > > Someone point me in the right direction. > > The new request profiler is young and experimental still; thanks for > giving it a spin. > > Write an integration script much like you would for integration tests. > Example: test/performance/authorize_user_and_redirect_back.rb > > host! ''foo.com'' > > get ''/admin/posts/1'' > follow_redirect! > raise unless path == ''/login'' > > post ''/login'', :username => ''john'', :password => ''doe'' > follow_redirect! > raise unless path == ''/admin/posts/1'' > > then run > > ./script/performance/request > test/performance/authorize_user_and_redirect_back.rb > > and check out the generated html call graph. > > The call graph is hard to interpret at first. We''ll have to work with > the ruby-prof guys to improve that. > > Best, > jeremy > > > >-- -------------------- seth at subimage interactive ----- http://sublog.subimage.com ----- Cashboard - Estimates, invoices, and time tracking software - for free! http://www.getcashboard.com ----- Substruct - Open source RoR e-commerce software. http://dev.subimage.com/projects/substruct --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---