Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory: unsupported and objects: unsupported #28

Open
sirius248 opened this issue Oct 26, 2015 · 7 comments
Open

memory: unsupported and objects: unsupported #28

sirius248 opened this issue Oct 26, 2015 · 7 comments

Comments

@sirius248
Copy link

I have rails 4.1.7 and ruby 2.0.0p643. Not sure this gem support ruby 2.0.0p643. Below is the result I got

$ bundle exec rake test:benchmark
Run options: --seed 19167

# Running:

ChatFeedTest#test_Public_feeds (274 ms warmup)
           wall_time: 16 ms
              memory: unsupported
             objects: unsupported
             gc_runs: 0
             gc_time: -80 ms
.FeedModelTest#test_creation (109 ms warmup)
           wall_time: 7 ms
              memory: unsupported
             objects: unsupported
             gc_runs: 0
             gc_time: 0 ms
@hadinishad
Copy link

This is also the case with Rails 4.2.3, ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

@snyaggarwal
Copy link

any resolution on this?

@IamNaN
Copy link

IamNaN commented Jun 16, 2016

Ping.

@miccarlson
Copy link

Really could use some help on this issue, so I can fine tune my project for Heroku.

@mustela
Copy link

mustela commented Apr 22, 2017

Having the same issue... any clue what's going on?

@spochart
Copy link

I'm also having this same issue, is there anything to fix this on the horizon?

@khamusa
Copy link

khamusa commented Apr 25, 2018

The issue seems a bit old, but hopefully this will save someone else a bit of time...

The benchmark will only return data for memory and objects on MRI if it can find GC#malloc_allocated_size and GC#malloc_allocations, which are only defined if you compile ruby with a specific macro turned on (MALLOC_ALLOCATED_SIZE). I made a patch for ruby 2.4.0: https://gist.github.com/khamusa/57a7660a69c7021ea1c1dea92c73a0bc, and devising a similar patch for other versions shouldn't be hard...

Ideally we would also enable CALC_EXACT_MALLOC_SIZE, but doing so was causing my server to segfault...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants