Benchmark-style memory profiling for Ruby 2.1+.