Logging all method calls in a Rails app

后端 未结 3 1075
太阳男子
太阳男子 2020-12-13 22:35

Is there an easy way to log all method calls in a Rails app?

My main use for this would be in testing (and in debugging tests). I want to have more of a history than

3条回答
  •  情话喂你
    2020-12-13 23:02

    Perftools might give you what you're looking for. It analyzes the entire process and can give you a graphical view that looks something like this. Rack perftools profiler is a rubygem that uses perftools and makes it easy to integrate with a Rails application, so I would recommend going with that if you want to try it.

提交回复
热议问题