分析 Plon/Zope

发布于 2024-12-14 10:44:39 字数 866 浏览 5 评论 0原文

当前在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

落花随流水 2024-12-21 10:44:39

看一下 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.

痴者 2024-12-21 10:44:39

2.0.2 版中的 ZopeProfiler 与 Plone 4.1 配合得很好

The ZopeProfiler in Version 2.0.2 works just fine with Plone 4.1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文