rails-perftest icon indicating copy to clipboard operation
rails-perftest copied to clipboard

why memory and object always zero?

Open TangMonk opened this issue 10 years ago • 6 comments

➜  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

TangMonk avatar Aug 20 '15 07:08 TangMonk

Issue also exists for ruby 2.2

MixmasterFresh avatar Aug 22 '15 14:08 MixmasterFresh

Did anyone work this out? I have the same issue ruby 2.1.1p76

mikedhart avatar Sep 08 '15 18:09 mikedhart

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.

MixmasterFresh avatar Sep 08 '15 19:09 MixmasterFresh

Are there plans to fix these issues and support the latest Ruby versions?

xtagon avatar Oct 09 '15 23:10 xtagon

I'm trying to fix a few issues with this gem, this will definitely be a part of that.

MixmasterFresh avatar Oct 10 '15 01:10 MixmasterFresh

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

cavoixanha avatar Mar 26 '19 04:03 cavoixanha