问题描述
我是Jarrod创建的 MiniProfiler 的忠实拥护者Dixon和ASP.NET的Stack Overflow团队. Rails应用程序有端口吗?
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?
由于探查器的核心位于 JavaScript , JQuery.tmpl 和少似乎很容易将后端移植到Rails,前端已经完成.
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.
前端体系结构允许通过将概要分析ID附加到自定义标头(X-MiniProfiler-Ids
)中的每个请求来进行POST和AJAX请求概要分析.
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
).
对于Python和GAE,有一个类似端口
There is a similar port for Python and GAE.
尽管 Rack Bug 非常有趣,但用户界面并不丰富-POST和没有AJAX支持,没有用于分析块的API,不建议在生产中使用.
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.
类似地,生产环境中不支持 dev模式中的NewRelic 并且没有在每个页面上呈现著名的MiniProfiler小片段".
Similarly, NewRelic in dev mode is not supported in production and does not have the famous MiniProfiler "chicklet" rendered on each page.
Rails中是否有MiniProfiler的端口?
Is there a port of MiniProfiler in Rails?
推荐答案
您很有趣,事实证明,我们一直在忙于将其移植到Ruby.
Funny that you ask that, turns out we have been busy porting it to Ruby.
请参阅:
- https://rubygems.org/gems/rack-mini-profiler
- 网站 http://miniprofiler.com 和
- github上的 https://github.com/SamSaffron/MiniProfiler/tree/master/Ruby
- https://rubygems.org/gems/rack-mini-profiler
- The website http://miniprofiler.com and
- The github https://github.com/SamSaffron/MiniProfiler/tree/master/Ruby
这篇关于Rails是否有端口mvc-mini-profiler?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!