开发者

Trace Rails application called methods into a graph

开发者 https://www.devze.com 2023-03-07 03:56 出处:网络
I would like to generate a graph from a Rails application. Not about its database, but for every methods that are called after a web query (inside controllers, helpers, partials).

I would like to generate a graph from a Rails application. Not about its database, but for every methods that are called after a web query (inside controllers, helpers, partials).

Just like this one (by @tenderlove)

Thi开发者_JAVA技巧s could help me a lot to detect loops and making optimizations.

Do you know a cool Ruby or Rails plugin for this? Thanks!

Edit: and this could be awesome, in order to solve a

stack level too deep


Use ruby-prof and a profiling data visualization tool like kcachegrind.

0

精彩评论

暂无评论...
验证码 换一张
取 消