======
README
======
This package offers a profiler including a skin. This profiler allows you to
profile views on a existing Zope3 application.
Let's access the profiler start page:
>>> from z3c.etestbrowser.testing import ExtendedTestBrowser
>>> user = ExtendedTestBrowser()
>>> user.addHeader('Accept-Language', 'en')
>>> user.open('http://localhost/++skin++Profiler')
If you access the profiler, you can push the start button:
>>> user.getControl('Start').click()
>>> 'Show Profile' in user.contents
True
Now we can go to the help.html page which get profiled. Let's use another
browser for this.
>>> newBrowser = ExtendedTestBrowser()
>>> newBrowser.open('http://localhost/++skin++Profiler/help.html')
>>> newBrowser.url
'http://localhost/++skin++Profiler/help.html'
After calling the help.html page, we can go to the doProfile page and show the
profile by clicking on the ``Show Profile`` button:
>>> user.getControl('Show Profile').click()
If we whould not call this form within this test, we whould see the profile
data table. But we do not see the profile data table. Probably the testrunner
conflicts with the monkey call.
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | z3c.profiler-0.5.0.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 182 浏览量
2022-01-17
15:10:08
上传
评论
收藏 101KB GZ 举报
温馨提示
共46个文件
py:14个
txt:10个
zcml:5个
资源来自pypi官网。 资源全名:z3c.profiler-0.5.0.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
z3c.profiler-0.5.0.tar.gz (46个子文件)
z3c.profiler-0.5.0
PKG-INFO 981B
README.txt 74B
CHANGES.txt 90B
bootstrap.py 2KB
src
z3c.profiler.egg-info
PKG-INFO 981B
requires.txt 478B
not-zip-safe 1B
SOURCES.txt 1KB
top_level.txt 4B
namespace_packages.txt 4B
dependency_links.txt 1B
z3c
profiler
skin.py 894B
README.txt 1KB
layer.py 860B
testing.py 955B
setup.zcml 5KB
wsgi.py 2KB
interfaces.py 900B
browser
README.txt 488B
favicon.png 23KB
template.pt 1KB
img
menuBG.jpg 386B
topBG.gif 55B
logo.gif 3KB
menuSeparator.gif 57B
logo.png 63KB
buttonBG.gif 239B
menu.pt 217B
profiler.py 7KB
help.py 861B
profiler.css 3KB
__init__.py 18B
menu.py 2KB
configure.zcml 2KB
profiler.pt 9KB
help.pt 19B
__init__.py 19B
TODO.txt 987B
configure.zcml 384B
SETUP.cfg 82B
z3c.profiler-configure.zcml 119B
tests.py 1KB
ftesting.zcml 623B
__init__.py 207B
setup.cfg 64B
setup.py 3KB
共 46 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功