Permalink
Commits on Oct 8, 2010
  1. bump to 0.1.2

    noahd1 committed Oct 8, 2010
  2. prefer statm to smaps

    Jordan Brough committed with noahd1 Oct 4, 2010
    statm gives different results than smaps but the same as ps.
    plus, statm is 2 orders of magnitude faster in my testing -- i'll take a .20ms hit/request over a 22ms hit any day. ;)
    speedup tip courtesy dmag (http://github.com/dmag).
    
    quick testing on one of our live production servers:
    
    def get_usage
      proc_file = File.new("/proc/#{$$}/smaps")
      proc_file.map do |line|
        size = line[/Size: *(\d+)/, 1] and size.to_i
      end.compact.sum
    end
    
    >> Benchmark.measure { 1000.times { get_usage } }
    => #<Benchmark::Tms:0x2aaaad4601b8 @cstime=0.0, @cutime=0.0, @label="", @stime=7.31, @real=22.716285943985, @utime=9.23, @total=16.54>
    
    >> Benchmark.measure { 1000.times { File.read('/proc/self/statm').to_i * 4 } }
    => #<Benchmark::Tms:0x2aaaad6c9288 @cstime=0.0, @cutime=0.0, @label="", @stime=0.0299999999999976, @real=0.201153039932251, @utime=0.169999999999998, @total=0.199999999999996>
Commits on Oct 1, 2010
  1. Add jeweler rake tasks

    noahd1 committed Oct 1, 2010
  2. bump version to 0.1.1

    noahd1 committed Oct 1, 2010
Commits on Aug 10, 2010
Commits on Jul 7, 2010
Commits on Jul 6, 2010
  1. Jewelerify.

    technicalpickles committed Jul 6, 2010
  2. Ignore pkg directory.

    technicalpickles committed Jul 6, 2010
Commits on Mar 22, 2010
  1. Now use virtual size (vsz) rather than resident size (rss). On Linux …

    ColinDKelley committed with noahd1 Mar 16, 2010
    …systems with a /proc directory, get the size from there rather than forking ps. Made OinkedRequest Comparable. Added tests.
Commits on Mar 15, 2010
  1. Improve performance of AR object allocation tracking by removing

    smtlaissezfaire committed Mar 15, 2010
    dependency on ActiveSupport callback system.
    
                         user     system      total        real
    40,000 empty iterations  0.000000   0.000000   0.000000 (  0.002622)
    without instance type counter - instantiating 40,000 objects  0.860000   0.020000   0.880000 (  0.879087)
    with instance type counter - instating 40,000 objects  1.090000   0.020000   1.110000 (  1.108573)
  2. Add benchmark for allocating 40k objects with + without oink:

    smtlaissezfaire committed Mar 15, 2010
                         user     system      total        real
    40,000 empty iterations  0.000000   0.000000   0.000000 (  0.002370)
    without instance type counter - instantiating 40,000 objects  0.910000   0.020000   0.930000 (  0.922722)
    with instance type counter - instating 40,000 objects  2.620000   0.070000   2.690000 (  2.700390)
Commits on Jan 7, 2010
  1. moved HODEL_LOG_FORMAT_REGEX to Oink::Base class and skip non Hodel 3…

    Michel Barbosa committed Jan 7, 2010
    …000 compliant lines from both the MemoryUsageReporter and ActiveRecordInstantiationReporter classes
Commits on Oct 13, 2009
Commits on Sep 24, 2009
  1. report memory in kilobytes

    ghazel committed Sep 24, 2009
Commits on Sep 23, 2009
  1. query based instead of ruby based

    ghazel committed Sep 23, 2009
Commits on Sep 7, 2009
  1. Updated example in documentation regarding how to make output verbose.

    Evil Trout committed Sep 7, 2009
    Also, made a mention as to where the oink executable will end up (script/oink).
Commits on May 22, 2009
Commits on Apr 1, 2009
Commits on Mar 31, 2009
  1. Removing dead code

    noahd1 committed Mar 31, 2009
Commits on Feb 27, 2009
  1. fixed bug with bad memoization of total active record instantiation c…

    noahd1 committed Feb 27, 2009
    …ount; updating docs
  2. Updating log parsing for new format of active record instantiation lo…

    Noah Davis and Lee Bankewitz committed Feb 27, 2009
    …gging; sending string of instantiation breakdown to callback instead of hash so that it's sorted
  3. removing requirement that code runs in cache classes mode; but will n…

    Noah Davis and Lee Bankewitz committed Feb 27, 2009
    …ow overwrite any defined after_initialize methods
  4. Adding callback before logging instantiation numbers; memoize count o…

    Noah Davis and Lee Bankewitz committed Feb 27, 2009
    …f total objects instantiated
  5. adding integration testing for active record extension; replacing act…

    Noah Davis and Lee Bankewitz committed Feb 27, 2009
    …ive record counter with instance type counter