<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>BSD_LICENSE</filename>
    </added>
    <added>
      <filename>LICENSE</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,20 +1,21 @@
-./CHANGELOG
-./LICENSE_AFL
-./Manifest
-./README
-./Rakefile
-./init.rb
-./install.rb
-./lib/bleak_house/LICENSE_BSD
-./lib/bleak_house/action_controller.rb
-./lib/bleak_house/analyze.rb
-./lib/bleak_house/bleak_house.rb
-./lib/bleak_house/c.rb
-./lib/bleak_house/dispatcher.rb
-./lib/bleak_house/gruff_hacks.rb
-./lib/bleak_house/rake_task_redefine_task.rb
-./lib/bleak_house/support_methods.rb
-./lib/bleak_house.rb
-./patches/gc.c.patch
-./tasks/bleak_house_tasks.rake
-./test/unit/test_bleak_house.rb
+test/unit/test_bleak_house.rb
+test/misc/direct.rb
+tasks/bleak_house_tasks.rake
+patches/gc.c.patch
+lib/bleak_house.rb
+lib/bleak_house/support_methods.rb
+lib/bleak_house/rake_task_redefine_task.rb
+lib/bleak_house/gruff_hacks.rb
+lib/bleak_house/dispatcher.rb
+lib/bleak_house/c.rb
+lib/bleak_house/bleak_house.rb
+lib/bleak_house/analyze.rb
+lib/bleak_house/action_controller.rb
+install.rb
+init.rb
+Rakefile
+README
+Manifest
+LICENSE
+CHANGELOG
+BSD_LICENSE</diff>
      <filename>Manifest</filename>
    </modified>
    <modified>
      <diff>@@ -3,30 +3,49 @@ BleakHouse
 
 A library and Rails plugin for finding memory leaks. BleakHouse instruments the Ruby heap at a low level, and produces charts of object counts and memory usage.
 
-REQUIREMENTS
+== License
+
+Copyright 2007 Cloudburst, LLC. See the included LICENSE file. Portions of &lt;tt&gt;lib/bleak_house/c.rb copyright&lt;/tt&gt; copyright 2006 Eric Hodel and used under license. See included the BSD_LICENSE file.
+
+== Requirements
 
 A unix-like operating system.
 
-Gems: 'gruff', 'rmagick', 'active_support', 'RubyInline'
+== Installation
+
+First, install the plugin into your Rails app:
+
+  ./script/plugin install svn://rubyforge.org/var/svn/fauna/bleak_house/trunk
 
-You need to compile the bleak_house patched Ruby build. In the 
-plugin directory: 
+You need to compile the BleakHouse patched Ruby build. In the plugin directory, run:
   rake ruby:build
+  
+This gives you a Ruby binary named &lt;tt&gt;ruby-bleak-house&lt;/tt&gt; alongside your regular binary.
+ 
+(Note, BleakHouse is also available as a gem:
+  sudo gem install bleak_house
+ 
+If you use the gem, &lt;tt&gt;require 'bleak_house'&lt;/tt&gt; in &lt;tt&gt;config/environment.rb&lt;/tt&gt;. You will also have to manually install the &lt;tt&gt;bleak_house:analyze&lt;/tt&gt; Rake task.)
 
-USAGE
+== Usage
 
 To profile your application:
   RAILS_ENV=production BLEAK_HOUSE=true ruby-bleak-house ./script/server 
 
-Browse around manually, thrash your entire app with a script, 
-target troublesome controllers/actions, etc.
+Browse around manually, thrash your entire app with a script, target troublesome controllers/actions, etc.
 
 Then, to analyze:
   RAILS_ENV=production SMOOTHNESS=1 rake bleak_house:analyze
 
 And then look in log/bleak_house*/.
 
-TROUBLESHOOTING
+== Advanced usage
+
+You can set the &lt;tt&gt;SMOOTHNESS&lt;/tt&gt; environment variable if you want. The &lt;tt&gt;SMOOTHNESS&lt;/tt&gt; setting just averages frames together. This is not a rolling average: 10 frames become 5 at &lt;tt&gt;SMOOTHNESS=2&lt;/tt&gt;. 
+
+Also, the unfiltered object logs will be at &lt;tt&gt;log/bleak_house_production.yaml.log&lt;/tt&gt;, if you need them.
+
+== Troubleshooting
 
 If you see the error &quot;Symbol not found: _rb_gc_heaps_used&quot;,
 it means you installed the patched binary, but tried to profile the 
@@ -37,16 +56,31 @@ alongside a different verson of Ruby. You could try to patch your local
 version of Ruby instead, or you could just upgrade to 1.8.6, which has
 a good trackrecord of stability anyway.
 
-FURTHER READING
+== Using BleakHouse without Rails
+
+If you want finer snapshots than every action, or want to use the plugin outside of Rails, you can make manual calls to &lt;tt&gt;BleakHouse::CLogger#snapshot&lt;/tt&gt;. At the start of your app, put:
+
+  require 'rubygems'
+  require 'bleak_house/c'
+  $memlogger = BleakHouse::CLogger.new
+  File.delete($logfile = &quot;/path/to/logfile&quot;) rescue nil
+
+This assumes you are using the gem version.
+
+Now, at the points of interest, put:
+
+  $memlogger.snapshot($logfile, &quot;tag/subtag&quot;, false)
+
+(If you pass true as the third parameter, BleakHouse will also log Ruby internal structs such as AST nodes and var scopes, instead of just Objects.)
+
+Exercise your program. Once you are done, analyze your data:
 
-Please visit: http://blog.evanweaver.com/pages/code#bleak_house
+  ruby -r rubygems -e 'require &quot;bleak_house/analyze&quot;; BleakHouse::Analyze.build_all(&quot;/path/to/logfile&quot;)'
 
-COPYRIGHT AND LICENSING
+You will get a &lt;tt&gt;bleak_house/&lt;/tt&gt; folder in the same folder as your log file.
 
-Copyright (c) 2007 Cloudburst, LLC. See the included LICENSE_AFL 
-file.
+== Further resources
 
-Portions of lib/bleak_house/c.rb copyright (c) 2006 Eric Hodel and 
-used under license (see included the lib/bleak_house/LICENSE_BSD 
-file).
+* http://blog.evanweaver.com/pages/code#bleak_house
+* http://rubyforge.org/forum/forum.php?forum_id=13983
 </diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>LICENSE_AFL</filename>
    </removed>
    <removed>
      <filename>lib/bleak_house/LICENSE_BSD</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c2411570d70146638594a85fb3600776294331aa</id>
    </parent>
  </parents>
  <author>
    <name>Evan Weaver</name>
    <email>evan@cloudbur.st</email>
  </author>
  <url>http://github.com/fauna/bleak_house/commit/c459ee13117bdaa99ba21db9ed2873bee4febed4</url>
  <id>c459ee13117bdaa99ba21db9ed2873bee4febed4</id>
  <committed-date>2007-08-06T13:33:31-07:00</committed-date>
  <authored-date>2007-08-06T13:33:31-07:00</authored-date>
  <message>temp commit</message>
  <tree>1112051797d1cb7819cd0204357971b1072097ec</tree>
  <committer>
    <name>Evan Weaver</name>
    <email>evan@cloudbur.st</email>
  </committer>
</commit>
