Skip to content

Instantly share code, notes, and snippets.

@crespire
Last active April 10, 2024 20:15
Show Gist options
  • Save crespire/059e5b57aacf4ab1efd2224cfb5eca32 to your computer and use it in GitHub Desktop.
Save crespire/059e5b57aacf4ab1efd2224cfb5eca32 to your computer and use it in GitHub Desktop.
  1. Add https://github.com/SamSaffron/memory_profiler to development gems
  2. Update the bundle
  3. Add require "memory_profiler" to config/environments/development.rb
  4. Where you want to do a memory report, use an inline start/stop and Rails.logger.debug the report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment