memory_profiler icon indicating copy to clipboard operation
memory_profiler copied to clipboard

memory_profiler for ruby

Results 13 memory_profiler issues
Sort by recently updated
recently updated
newest added

This seems to work but not sure if it creates incorrect results: ```` require 'memory_profiler' report = MemoryProfiler.report do `rake theTask` end report.pretty_print ````

Currently, CLI is able to profile only single ruby files via `memory-profiler ruby_file.rb` (we pass a file name and the gem loads it and profiles the memory). It will be...

I'm investigating memory usage in a Ruby on Rails 6 app. I wrote the following code around an initializer: ```ruby if !ENV["MEMPROFILE"].blank? require 'memory_profiler' MemoryProfiler.start end # My initializer if...

Using `MemoryProfiler.start` on one of our jobs, and then waiting to dump `MemoryProfile.stop&.pretty_print` took a job that uses 2gb of memory to 76gb of memory. Is there a way we...

Is it possible to print the report while memory profiling is being done? P.S. The program I wish to profile would take about an hour to run. I'd like to...

Hi, there are two tests of the 0.9.14 release failing when run with Ruby 3.0. 1) `test/test_results.rb`: The report for Ruby 3 does not contain the last string as expected...

I've been using `memory_profiler` to profile a few optimizations around string allocations and usage of `byteslice` vs string mutation, and although the number of strings allocated has increased, I suspect...

When I run `memory_profiler` I get an error when it's generating the report: ``` /Users/xxxxx/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/memory_profiler-0.9.14/lib/memory_profiler/helpers.rb:40: [BUG] Segmentation fault at 0x0000000109e63000 ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19] ```

The following test case reports the allocation of method arguments on different lines for Ruby MRI 2.5/2.7 vs. Ruby MRI 2.6: ```ruby require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'memory_profiler',...

Hi there, Thanks for your work on this gem so far. However, while building this against Ruby2.7 on arm64, I got the following errors: ``` Finished in 2.134689s, 39.3500 runs/s,...