<?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 : ruby-prof 0.4.0 with call graphs</title>
    <link>http://cfis.savagexi.com</link>
    <atom:link rel="self" type="application/rss+xml" href="http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs?format=rss"/>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Charlie Savage's Blog</description>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Paul Findlay</title>
      <description>&lt;p&gt;Very cool! Thanks for this.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Jun 2006 21:03:04 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:dc691aa6-4de4-4e84-96de-15dd29eff379</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-37</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;No problem Paul, it was fun to do.  All feedback and comments are welcome&amp;#8230;.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jun 2006 00:01:56 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:558d40b7-b386-46a1-b54a-1fb3f5e97924</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-52</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Jonathan</title>
      <description>&lt;p&gt;This looks like a very very useful utility and I&amp;#8217;d like to thank you guys for all the effort you already put in.&lt;/p&gt;

&lt;p&gt;However I can&amp;#8217;t find a way to use the Ruby cmd-line arguments to, for example, add a directory to the loading-list: -I . Or to require a library beforehand with -r&lt;/p&gt;

&lt;p&gt;Do you have any plans to add this ruby-prof?&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jun 2006 06:15:53 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e4fde074-6742-4b87-bca1-8361c61c7507</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-53</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;Hi Jonathon,&lt;br /&gt;
&lt;/p&gt;

&lt;p&gt;ruby-prof right now uses Ruby&amp;#8217;s load method to run the specified scripts.&lt;/p&gt;

&lt;p&gt;So, not sure if this would work, but you could try:&lt;/p&gt;

&lt;p&gt;ruby -S ruby-prof -r(add your stuff) (scripts_to_run)&lt;/p&gt;

&lt;p&gt;If that doesn&amp;#8217;t work, then check out the profiletask in the lib/ruby-prof directory.  You could create a little rake file that would call RubyProf the way you mention.&lt;/p&gt;

&lt;p&gt;Let us know what works - and we&amp;#8217;d be happy to accept a patch to make this work better with ruby-prof.&lt;br /&gt;
&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jun 2006 16:18:55 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:68ce640b-6ee3-4625-807d-000e0ca89af7</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-54</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Haris Skiadas</title>
      <description>&lt;p&gt;I seem to be having problems installing the gem. I&amp;#8217;m running Ruby 1.8.2, and it tells me it&amp;#8217;s too old. What version does it require?&lt;/p&gt;

&lt;p&gt;Btw, what about the 0.4.1 version that shows up, is that stable?&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jun 2006 17:05:38 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:bc0bd3f7-b733-4ef8-9974-566ae1b1c05e</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-55</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;Haris - We&amp;#8217;ve only tested on Ruby 1.8.4.  Its plausible it works on 1.8.2 but we didn&amp;#8217;t test it so we required 1.8.4.  You could try gem install &amp;#8211;force ruby-prof and give it a try.&lt;/p&gt;

&lt;p&gt;0.4.1 fixes a bug in 0.4.0 that you probably wouldn&amp;#8217;t run into, as well as an obvious documentation error.  Hopefully is stable.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jun 2006 23:24:35 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e4b3f9e7-6596-4fe3-9a21-30c29706b23c</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-41</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Haris Skiadas</title>
      <description>&lt;p&gt;Thanks for the quick feedback. When I try even with the &amp;#8211;force, I get:&lt;/p&gt;

&lt;p&gt;Ruby version is too old
ERROR:  While executing gem &amp;#8230; (RuntimeError)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ERROR: Failed to build gem native extension.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I&amp;#8217;m basically using the ruby that ships with MacOSX.&lt;/p&gt;

&lt;p&gt;I guess I&amp;#8217;ll have to wait until I decide to update. Darn though, it looks really cool!&lt;/p&gt;

&lt;p&gt;You might want to update the documentation in &lt;a href="http://ruby-prof.rubyforge.org/" rel="nofollow"&gt;http://ruby-prof.rubyforge.org/&lt;/a&gt; though, it says that it requires simply 1.8.2 or higher.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jun 2006 23:39:39 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:704aaaed-ff89-4820-9889-9fd9e56ce7c4</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-59</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;Bummer.  If you feel like doing a little more work try a manual install.  Download the zip or tar archive and unzip it.  Then copy ruby-prof.rb, ruby-prof, and the lib directory to your ruby_site directory.  Then copy the ruby_prof.so extension to site_ruby i386-msvcrt (or whatever it is on your platform).&lt;/p&gt;

&lt;p&gt;That should do the trick, you can then see it works.  Thanks for the tip on the documentation, if I get a chance I&amp;#8217;ll install Ruby 1.8.2 and see what happens.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 00:06:58 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b493174b-bf8a-482a-9857-649206c89f60</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-27</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Haris Skiadas</title>
      <description>&lt;p&gt;I&amp;#8217;m with you until the ruby_prof.so file. I downloaded &lt;a href="http://rubyforge.org/frs/download.php/11223/ruby-prof-0.4.1.tgz" rel="nofollow"&gt;http://rubyforge.org/frs/download.php/11223/ruby-prof-0.4.1.tgz&lt;/a&gt; and unziped it, but I can&amp;#8217;t find a .so file. There is a ruby-prof file with no extension on the root directory, and a ruby_prof.c file in the ext folder. Is that the one that&amp;#8217;s supposed to give me the .so? I&amp;#8217;m not sure how I am supposed to compile it. Also not clear where to place the .so file, what is this directory supposed to be? I&amp;#8217;m guessing it should be: /usr/lib/ruby/1.8/powerpc-darwin8.0/ this contains a lot of .bundle items, but no .so items.&lt;/p&gt;

&lt;p&gt;Thanks for the help.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 01:18:23 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:aefb81ec-cdcd-4ded-bbb1-5c4eac3f18fe</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-60</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;Right, you&amp;#8217;re on Linux/unix.  Here&amp;#8217;s how to compile it:&lt;/p&gt;

&lt;p&gt;$ cd ruby-prof/ext&lt;/p&gt;

&lt;p&gt;$ gcc -c ruby_prof.o -I/usr/lib/ruby/1.8/i386-linux (that&amp;#8217;s a capital i not l)&lt;/p&gt;

&lt;p&gt;$ gcc -shared -o ruby_prof.so -lruby ruby_prof.so (and that&amp;#8217;s a lowercase l not an i)&lt;/p&gt;

&lt;p&gt;That should do the trick.  Thanks for your patience.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 01:55:33 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e6811d05-bbf0-4395-9cb7-1036c971da2b</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-61</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Haris Skiadas</title>
      <description>&lt;p&gt;Thanks for helping out, my compiling skills are I&amp;#8217;m afraid limited to ./configure, make, make install.&lt;/p&gt;

&lt;p&gt;I am running on MacOSX btw.&lt;/p&gt;

&lt;p&gt;I tried to run this command:&lt;/p&gt;

&lt;p&gt;gcc -c ruby_prof.o -I/usr/lib/ruby/1.8/powerpc-darwin8.0&lt;/p&gt;

&lt;p&gt;which I&amp;#8217;m assuming is what you meant, and I got:&lt;/p&gt;

&lt;p&gt;powerpc-apple-darwin8-gcc-4.0.0: ruby_prof.o: No such file or directory&lt;/p&gt;

&lt;p&gt;In fact the ext directory has only ruby_prof.c&lt;/p&gt;

&lt;p&gt;When I tried to run:&lt;/p&gt;

&lt;p&gt;gcc -c ruby_prof.c -I/usr/lib/ruby/1.8/powerpc-darwin8.0&lt;br /&gt;
&lt;/p&gt;

&lt;p&gt;instead, I got a whole list of errors starting with:&lt;/p&gt;

&lt;p&gt;ruby_prof.c:1027: error: parse error before &#8216;event&#8217;&lt;/p&gt;

&lt;p&gt;Btw, my gcc doesn&amp;#8217;t seem to have the -I option.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 10:51:39 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3dcf969a-16b7-4986-bd43-37625023bede</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-62</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Haris Skiadas</title>
      <description>&lt;p&gt;Upon further examination, gcc seems to understand the -I option, even though it doesn&amp;#8217;t say so when I do gcc &amp;#8211;help.
So I decided to search in the directory
/usr/lib/ruby/1.8/powerpc-darwin8.0 for the string rb_event_t, and it can&amp;#8217;t be found anywhere.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 11:03:49 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:00aacec5-da22-4973-a433-24e38276bad7</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-12</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;This was the correct form:&lt;/p&gt;

&lt;p&gt;gcc -c ruby_prof.c -I/usr/lib/ruby/1.8/powerpc-darwin8.0&lt;/p&gt;

&lt;p&gt;Basically, compile ruby_prof.c to ruby_prof.o.  The -I (uppercase i) tells gcc where the Ruby header files are.  If it can&amp;#8217;t find them, then you&amp;#8217;ll get a bunch of errors.&lt;/p&gt;

&lt;p&gt;Let me see if this works with Ruby 1.8.2 today&amp;#8230;.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 12:33:54 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:43facac8-311e-469c-8ec4-a808811983f4</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-63</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Charlie</title>
      <description>&lt;p&gt;Ok - looks like it doesn&amp;#8217;t work.  I get errors about prof_event_hook not working - which is the main way ruby-prof hooks into Ruby.&lt;/p&gt;

&lt;p&gt;After some investigation, I found this:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/131313?131258-132005+split-mode-vertical" rel="nofollow"&gt;http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/131313?131258-132005+split-mode-vertical&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Looks to me that Shugo requested that this function be added to Ruby.  In the ruby-prof-0.3.0 build scripts, they require a version of 1.8.2 newer than March 22, 2005.  However, Ruby 1.8.2 was  released in December 2004.&lt;/p&gt;

&lt;p&gt;So it looks to me you&amp;#8217;d have to upgrade to 1.8.4.  Sorry about that, I&amp;#8217;ll fix up the documentation to make that more clear.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 12:44:23 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:0d21ad8f-62fd-4fea-b6c7-a9f8599045d9</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-64</link>
    </item>
    <item>
      <title>Comment on ruby-prof 0.4.0 with call graphs by Haris Skiadas</title>
      <description>&lt;p&gt;Oh well, thanks for all the help anyway. I have had other reasons to move up to 1.8.4 anyway, it&amp;#8217;s just a question of taking the plunge&amp;#8230; Since I didn&amp;#8217;t install Ruby in the first place, it just came with the OS, i&amp;#8217;m a bit hesitant to install it now. :)&lt;/p&gt;

&lt;p&gt;Thanks again and congrats on an awesome tool. It looks great even without using it ;)&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jun 2006 14:36:04 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:fd8e8077-fcf6-43be-83d0-ec8e3cda37db</guid>
      <link>http://cfis.savagexi.com/2006/06/21/ruby-prof-0-4-0-with-call-graphs#comment-65</link>
    </item>
  </channel>
</rss>
