We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to follow this guide with ruby 2.4.6 & rails 4.2.11.1.
On my locally running sidekiq instance it does not seem to work:
bundle exec rbtrace -p <pid> -e "load 'command.rb'"
I've put the following line in command.rb to work around the Mac OS line-too-long issue:
Thread.new{GC.start; require "objspace";io=File.open("/tmp/ruby-heap.dump", "w"); ObjectSpace.dump_all(output: io); io.close}
In my application.rb I have:
application.rb
require 'rbtrace' require 'objspace' ObjectSpace.trace_object_allocations_start
Yet, the result I get is:
*** attached to process 24295 >> load 'yolo.rb' => #<ThreadError: can't be called from trap context> *** detached from process 24295
Please advise how I can get around this, thanks in advance.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to follow this guide with ruby 2.4.6 & rails 4.2.11.1.
On my locally running sidekiq instance it does not seem to work:
bundle exec rbtrace -p <pid> -e "load 'command.rb'"
I've put the following line in command.rb to work around the Mac OS line-too-long issue:
Thread.new{GC.start; require "objspace";io=File.open("/tmp/ruby-heap.dump", "w"); ObjectSpace.dump_all(output: io); io.close}
In my
application.rb
I have:Yet, the result I get is:
Please advise how I can get around this, thanks in advance.
The text was updated successfully, but these errors were encountered: