【发布时间】:2011-11-09 20:27:00
【问题描述】:
在 Plone 4.1/Zope 2.13 系统上分析 Plone/Zope 应用程序的当前最佳实践是什么?
Products.ZopeProfiler 和 CallProfiler 的 Plone.org 版本都在安装时失败:
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 看起来很有希望,并且可以安装,但不允许我分析 View 的 __call__ 方法,因为该方法没有 __dict__ 属性。
【问题讨论】:
-
显然 CallProfiler 自从我询问以来已经修复,至少要安装它,它似乎最终会分析调用。不幸的是,大多数尝试显示结果都失败了。
-
我在 pypi 上发布了 Products.CallProfiler 但它也遇到了同样的错误。等待这些软件包的新版本
-
查看scalingplone.pbworks.com/w/page/3770062/Tuning 的监控部分,了解有关 ZODB 活动的一些说明。