rails-perftest
rails-perftest copied to clipboard
why memory and object always zero?
➜ pzz git:(master) ✗ perftest profiler 'PzzUser.first' --runs 3
Run options: --seed 6585
# Running:
ProfilerTest#test_pzzuser_first (35 ms warmup)
process_time: 13 ms
memory: 0 Bytes
objects: 0
.
Finished in 1.732627s, 0.5772 runs/s, 0.0000 assertions/s.
1 runs, 0 assertions, 0 failures, 0 errors, 0 skips
I am using ruby 2.1
Issue also exists for ruby 2.2
Did anyone work this out? I have the same issue ruby 2.1.1p76
This is an issue with the way that rails-perftest implements the 'ruby-prof' gem. There are apparently several issues that exist within the perftest gem that create this issue.
Are there plans to fix these issues and support the latest Ruby versions?
I'm trying to fix a few issues with this gem, this will definitely be a part of that.
I'm trying to fix a few issues with this gem, this will definitely be a part of that.
you can fix following this comment: https://github.com/rails/rails-perftest/issues/28#issuecomment-384127137