• Yorick Peterse's avatar
    Track memory allocated during a transaction · 5679ee01
    Yorick Peterse authored
    This gives a very rough estimate of how much memory is allocated during
    a transaction. This only works reliably when using a single-threaded
    application server and a Ruby implementation with a GIL as otherwise
    memory allocated by other threads might skew the statistics. Sadly
    there's no way around this as Ruby doesn't provide a reliable way of
    gathering accurate object sizes upon allocation on a per-thread basis.
    5679ee01