<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>cfis : How to Profile Your Rails Application</title>
    <link>http://cfis.savagexi.com</link>
    <atom:link rel="self" type="application/rss+xml" href="http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application?format=rss"/>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Charlie Savage's Blog</description>
    <item>
      <title>Comment on How to Profile Your Rails Application by Gary Murakami</title>
      <description>&lt;p&gt;You wrote, &amp;#8220;Obviously for real testing you&amp;#8217;ll need to make many requests, &amp;#8230;&amp;#8221;  This is my current wish.  With many requests, it appears that mongrel spawns a new thread for each request, resulting in output from ruby-prof for each request/thread and loss of aggregate behavior over many requests.  Any hints and remedies would be welcome, e.g., is there a way to make mongrel use the same thread?&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jul 2007 14:25:54 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:30e78d93-dc09-495c-9402-72953d6478aa</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-1908</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Tim</title>
      <description>&lt;p&gt;Um.. where is the rails plugin?&lt;/p&gt;

&lt;p&gt;ruby-prof/rails_plugin doesn&amp;#8217;t seem to exist&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jul 2007 14:32:25 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e49f8420-bde6-4adb-8d22-b6c7aad33e62</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-1909</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Charlie</title>
      <description>&lt;p&gt;Tim,&lt;/p&gt;

&lt;p&gt;It should be installed under:&lt;/p&gt;

&lt;p&gt;gems\ruby-prof-0.5.0\lib\ruby-prof\rails_plugin&lt;/p&gt;

&lt;p&gt;I think maybe I&amp;#8217;ll change it to be directly under the top ruby-prof directory in a future release.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jul 2007 17:55:50 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:da9e45ad-3f7c-41f1-8941-d9dd95bbd589</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-1910</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Charlie</title>
      <description>&lt;p&gt;Hi Gary,&lt;/p&gt;

&lt;p&gt;Yeah, ruby-prof doesn&amp;#8217;t maintain aggregate information.  And I&amp;#8217;m not sure how mongrel does threading, haven&amp;#8217;t ever checked.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;m not sure though how useful it would be though for ruby-prof to aggregate data.  I think profiling one request is fine for getting a feel for timings.  Usually what I do is tail the rails log file, and then do one request at a time and scan the results to make sure they are consistent.&lt;/p&gt;

&lt;p&gt;Now, to validate that your changes have improved performance, you definitely want to gather average times and standard deviations before and after any changes. And to do that, you should run a fair number of tests (and if I remember my statistics correctly, there are methodologies that tell you just how many tests that is).&lt;/p&gt;

&lt;p&gt;Hope this helps a bit - good luck!&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jul 2007 18:01:36 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:58b1bbb1-2193-4f7c-bfde-7801aef834b3</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-1911</link>
    </item>
    <item>
      <title>Trackback from cfis: Making Rails Go Vroom on How to Profile Your Rails Application</title>
      <description>Last week I demonstrated how to profile a Rails application using ruby-prof. The post was driven by our desire to improve MapBuzz's map rendering speed. Our nightly log analysis showed that rendering speed had significantly degraded over the last ...</description>
      <pubDate>Wed, 18 Jul 2007 11:16:52 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:02182fe5-2bb5-4269-af4a-5de4c7a56696</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#trackback-1917</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Tim</title>
      <description>&lt;p&gt;I don&amp;#8217;t think the plugin was included in 0.5.1&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jul 2007 13:21:18 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:11c87405-e25c-407e-b018-ab41df90421d</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-1934</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Charlie</title>
      <description>&lt;p&gt;Hi Tim,&lt;/p&gt;

&lt;p&gt;Wow - you&amp;#8217;re right - how embarrassing.  I just uploaded 0.5.2 which fixes the issue - hopefully it will be showing up soon on RubyForge.&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jul 2007 14:11:26 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:ae14ff34-6856-4c25-bb73-d74d199ab3bb</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-1935</link>
    </item>
    <item>
      <title>Trackback from blogwi.se: How-to Profile your Ruby (on Rails) Application on How to Profile Your Rails Application</title>
      <description>
Our current project is by far not yet in the state where we can and want to profile it&amp;#8217;s overall performance, but considering its current pace, we might be there in a couple weeks and therefore this post also is meant to be a little reminde...</description>
      <pubDate>Sun, 22 Jul 2007 11:26:29 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:96d11875-5f70-41f4-b837-9adf1b8e14d5</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#trackback-2004</link>
    </item>
    <item>
      <title>Trackback from Quicklinks: links for 2007-07-27 on How to Profile Your Rails Application</title>
      <description> How to Profile Your Rails Application (tags: Rails performance development) Making Rails Go Vroom (tags: Rails development performance)...</description>
      <pubDate>Fri, 27 Jul 2007 05:17:14 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:a6966a7b-16e2-4025-9cbb-5a23ab02e0b1</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#trackback-3653</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Sean</title>
      <description>&lt;p&gt;Following the above directions, I&amp;#8217;m trying to profile some actions that are notoriously slow on our site, but I can&amp;#8217;t access them because I keep getting LoadError&amp;#8217;s.  Any clue what might cause this?&lt;/p&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:39:21 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:0a6ab52b-b3ea-41de-8de8-d806a04dc773</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-3994</link>
    </item>
    <item>
      <title>Trackback from Scott's Place: links for 2007-07-31 on How to Profile Your Rails Application</title>
      <description>Making Rails go Vroom Practical walkthrough of optimising a Rails app using profiling reports (tags: activerecord articles code deployment dev development geek howto optimisation performance rails reference ruby rubyonrails software speed tips tut...</description>
      <pubDate>Mon, 30 Jul 2007 18:22:08 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:91880208-b715-475a-916b-224adfac24d8</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#trackback-3998</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Location of Ruby Gem dir on Mac OS X</title>
      <description>&lt;p&gt;After amany Google searches, I eventually found the location of the Gems dir on OS X 10.5 Leopard. It&amp;#8217;s /Library/Ruby/Gems/1.8/gems&lt;/p&gt;

&lt;p&gt;So to copy the plugin, you do:&lt;/p&gt;

&lt;p&gt;cp -r /Library/Ruby/Gems/1.8/gems/ruby-prof-0.6.0/rails_plugin /path/to/railsapp/vendor/plugins/&lt;/p&gt;</description>
      <pubDate>Tue, 18 Mar 2008 14:49:38 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:03531e8d-77ee-4986-9960-1a38cf952576</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-9080</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Roger</title>
      <description>&lt;p&gt;Note also the importance of profiling the &lt;em&gt;whole app&lt;/em&gt; &amp;#8211; so start the profiling within mongrel or somewhere that is global, so you can see if the asset manager is eating your lunch or what is.  Good luck!&lt;/p&gt;</description>
      <pubDate>Wed, 19 Mar 2008 12:03:18 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:91f9ed97-4501-4ced-9866-c180131affdd</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-9108</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Roger</title>
      <description>&lt;p&gt;Note that if you google for it, kcachegrind appears available for mac os and for windows, too. Thanks!&lt;/p&gt;</description>
      <pubDate>Wed, 19 Mar 2008 12:07:09 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:81afd7fc-c683-4ccb-b187-09f26c5848ea</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-9109</link>
    </item>
    <item>
      <title>Comment on How to Profile Your Rails Application by Neel</title>
      <description>&lt;p&gt;While I a m having many request at a time I can see only one Thread ID information on request.html, How to view information related to multiple requests.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jun 2008 05:59:51 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:0ca8668a-eb4d-4e7a-abb6-ab56cc64d0b0</guid>
      <link>http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application#comment-19849</link>
    </item>
  </channel>
</rss>
