我是 Jarrod Dixon 和ASP.NET 的 Stack Overflow 团队。是否有用于 Rails 应用程序的端口?
由于分析器的核心位于 JavaScript、JQuery.tmpl 和 Les 看来将后端移植到 Rails 会相当简单,前端已经完成了。
"pic1">
前端架构允许通过将分析 ID 附加到自定义标头 (X-MiniProfiler-Ids
) 中的每个请求来进行 POST 和 AJAX 请求分析。
Python 和 GAE 有一个类似的端口。
尽管 Rack Bug 相当有趣,但 UI 并不丰富 - POST 和 AJAX 支持不存在,没有用于分析块的 API,并且不建议在生产中使用。
同样,开发模式中的 NewRelic 在生产中不受支持,并且不支持在每个页面上呈现著名的 MiniProfiler“chicklet”。
Rails 中有 MiniProfiler 的端口吗?
I'm a big fan of the MiniProfiler created by Jarrod Dixon and the Stack Overflow team for ASP.NET. Is there a port of it for Rails applications?
Since the core of the profiler is in JavaScript, JQuery.tmpl and Less it seems that porting the back-end to Rails would be fairly straight forward, the front-end is already done.
The front end architecture allows for POST and AJAX request profiling by attaching profiling ids to every request in a custom header (X-MiniProfiler-Ids
).
There is a similar port for Python and GAE.
Even though Rack Bug is fairly interesting, the UI is not as rich - POST and AJAX support is not there, there is no API for profiling blocks and use in production is not recommended.
Similarly, NewRelic in dev mode is not supported in production and does not have the famous MiniProfiler "chicklet" rendered on each page.
Is there a port of MiniProfiler in Rails?
发布评论
评论(4)
有趣的是你问这个,事实证明我们一直在忙着将它移植到 Ruby。
请参阅:
Funny that you ask that, turns out we have been busy porting it to Ruby.
See:
您看过 Rails-Footnotes 吗?
“它在应用程序中显示脚注,以便于调试,例如会话、请求参数、cookie、过滤器链、路由、查询等。
更重要的是,它包含直接在编辑器中打开文件的链接,包括回溯行。”
Have you looked at Rails-Footnotes?
"It displays footnotes in your application for easy debugging, such as sessions, request parameters, cookies, filter chain, routes, queries, etc.
Even more, it contains links to open files directly in your editor including your backtrace lines."
NewRelic 的“开发者模式”。
https://support.newrelic.com/help/kb/ruby/developer-mode
它不是 1:1,但它会记录操作、查询,甚至向您显示执行查询的源。
他们还提供了源代码:https://github.com/newrelic/rpm
There's NewRelic's "Developer Mode".
https://support.newrelic.com/help/kb/ruby/developer-mode
It's not a 1:1 but it does log actions, queries and even show you the source that executed queries.
They also have the source available at: https://github.com/newrelic/rpm
Rackbug 是一个 Rack 应用程序,为 Rack 应用程序添加了一个诊断工具栏,它看起来与 MiniProfiler 类似。
查看功能列表:
它可以在您指定的每个环境下工作,但受 IP 地址限制
Rackbug is a Rack application, adds a diagnostics toolbar to Rack apps, it looks similar with MiniProfiler.
Take a look at features list:
It can work on every environment you specified with restriction by IP address