分析 Plon/Zope
当前在 Plone 4.1/Zope 2.13 系统上分析 Plone/Zope 应用程序的最佳实践是什么?
Products.ZopeProfiler 和 Plone.org 版本的 CallProfiler 都在安装时失败:
Traceback (most recent call last):
File "/home/derek/plone4/buildout-cache/eggs/Zope2-2.13.10-py2.6.egg/OFS/Application.py", line 689, in install_product
initmethod(context)
File "/home/derek/plone4/buildout-cache/eggs/Products.ZopeProfiler-2.0.1-py2.6.egg/Products/ZopeProfiler/__init__.py", line 8, in initialize
control_panel = context._ProductContext__app.Control_Panel
AttributeError: 'NoneType' object has no attribute 'Control_Panel'
z3c.profiler 想要安装很多显然-不兼容的依赖项(这并不奇怪,因为它是为 Zope3 设计的)。
collective.profiler 看起来很有希望,并且可以安装,但不允许我分析视图的 __call__
方法,因为该方法没有 __dict__< /代码> 属性。
What is current best practice for profiling Plone/Zope applications on a Plone 4.1/Zope 2.13 system?
Products.ZopeProfiler and the Plone.org version of CallProfiler both fail at install time with:
Traceback (most recent call last):
File "/home/derek/plone4/buildout-cache/eggs/Zope2-2.13.10-py2.6.egg/OFS/Application.py", line 689, in install_product
initmethod(context)
File "/home/derek/plone4/buildout-cache/eggs/Products.ZopeProfiler-2.0.1-py2.6.egg/Products/ZopeProfiler/__init__.py", line 8, in initialize
control_panel = context._ProductContext__app.Control_Panel
AttributeError: 'NoneType' object has no attribute 'Control_Panel'
z3c.profiler wants to install a lot of apparently-incompatible dependencies (not surprising since it's intended for Zope3).
collective.profiler looks promising, and installs, but doesn't let me profile the __call__
method of a View, because the method doesn't have a __dict__
attribute.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下 repoze.profile ,它是 文档。它作为 WSGI 中间件组件运行,聚合对 WSGI 应用程序的所有请求的分析数据。
Have a look at repoze.profile and it's documentation. It runs as WSGI middleware component which aggregates profiling data across all requests to the WSGI application.
2.0.2 版中的 ZopeProfiler 与 Plone 4.1 配合得很好
The ZopeProfiler in Version 2.0.2 works just fine with Plone 4.1