How do I track down a memory leak in my Ruby code?

前端 未结 4 579
一个人的身影
一个人的身影 2020-12-13 00:39

Question

I\'m debugging a memory leak in a rake task. I want to see a call stack of:

  • Living objects
  • What object or line originally allocated
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 01:22

    Consider the memory_profiler gem for use with Ruby 2.1.

提交回复
热议问题