在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__属性。
发布于 2012-01-06 09:54:25
看看repoze.profile,它是文档。它以WSGI中间件组件的形式运行,它将对WSGI应用程序的所有请求聚合分析数据。
发布于 2012-03-08 21:09:57
版本2.0.2中的ZopeProfiler在plone4.1中运行得很好。
https://stackoverflow.com/questions/8071179
复制相似问题