Rails Performance Profile Reports 0 MB -
i'm experiencing unexpected behavior when try performance testing. it's reporting 0 mb memory though millions of objects created in run. while profiler running, activity monitor reporting memory usage in 100s of mb.
here details local environment:
- os: mac os 10.9.5
- hardware: macbook air
- ruby: 2.2.2 (rvm)
- rails: 4.1.11 using
- rails-perftest & ruby-prof gems
any idea why i'm seeing 0 memory usage?
$ rails_env=development perftest profiler 'queue.last.refill' -m process_time,memory,objects,gc_runs,gc_time run options: --seed 30468 # running: profilertest#test_queue_last_refill (10.00 sec warmup) process_time: 62.34 sec memory: 0 bytes objects: 3,903,787 gc_runs: 3 gc_time: 0 ms . finished in 239.965591s, 0.0042 runs/s, 0.0000 assertions/s.
you need gc patched mri. need require ruby-prof. check documentation here: http://guides.rubyonrails.org/v3.2.13/performance_testing.html#installing-gc-patched-mri
Comments
Post a Comment