Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install z3c.profiler

How to install z3c.profiler

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install z3c.profiler
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.10.0 Available View build log
Windows (64-bit)
0.10.0 Available View build log
Mac OS X (10.5+)
0.10.0 Available View build log
Linux (32-bit)
0.10.0 Available View build log
Linux (64-bit)
0.10.0 Available View build log
 
License
ZPL 2.1
Lastest release
version 0.10.0 on Jan 5th, 2011

This package provides a profiler skin which allows you to profile pages.

Detailed Documentation

Web-based Profiler

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 gets 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.

>>> print user.contents
<!DOCTYPE ...
<div>
No data available.
</div>
...
Changes
0.10.0 (2010-08-19)
  • Using python's doctest module instead of deprecated

System Message: WARNING/2 (<string>, line 58)

Bullet list ends without a blank line; unexpected unindent.

zope.testing.doctest.

  • Fixed bin/app by requiring zope.login.
  • Removed some not needed dependecies: zope.app.generations,

System Message: WARNING/2 (<string>, line 63)

Bullet list ends without a blank line; unexpected unindent.

zope.app.pagetemplate, z3c.coverage.

  • Moved dependency on zope.app.server to an app extra in setup.py

System Message: WARNING/2 (<string>, line 66)

Bullet list ends without a blank line; unexpected unindent.

as the tests do not need it and the profiler may be used in a WSGI application then it is not needed, too.

  • Declared zope.dublincore in app extra, too, as it is not needed by

System Message: WARNING/2 (<string>, line 70)

Bullet list ends without a blank line; unexpected unindent.

the tests but bin/app requires now version 3.7 to run.

0.9.0 (2009-12-26)
  • Use zope.browserpage and zope.browserresource instead of

System Message: WARNING/2 (<string>, line 77)

Bullet list ends without a blank line; unexpected unindent.

zope.app.publisher.

0.8.1 (2009-12-26)
  • Fixed processing profile data for display in web UI, so the data is

System Message: WARNING/2 (<string>, line 84)

Bullet list ends without a blank line; unexpected unindent.

now displayed on the web page. Kept the previous behavior to print unprocessed profile data on stdout.

  • Removed unused dependency on z3c.i18n.
  • Removed not necessary and undeclared test depenency on

System Message: WARNING/2 (<string>, line 90)

Bullet list ends without a blank line; unexpected unindent.

zope.app.authentication.

  • Removed zpkg and ZCML install slugs.
0.8.0 (2009-06-19)
  • Removed no longer necessary dependencies on zope.app.zapi,

System Message: WARNING/2 (<string>, line 99)

Bullet list ends without a blank line; unexpected unindent.

zope.app.container, zope.app.component, zope.app.security.

  • Removed dependency on z3c.layer.minimal, as it is not used.
  • Removed no longer necessary test dependencies on zope.app.folder,

System Message: WARNING/2 (<string>, line 104)

Bullet list ends without a blank line; unexpected unindent.

zope.app.session, zope.app.schema.

0.7.1 (2009-04-05)
  • Removed unnecessary dependencies on zope.app.twisted and

System Message: WARNING/2 (<string>, line 111)

Bullet list ends without a blank line; unexpected unindent.

zope.app.zopeappgenerations.

0.7.0 (2009-03-14)
  • Use current zope.configuration instead of deprecated

System Message: WARNING/2 (<string>, line 118)

Bullet list ends without a blank line; unexpected unindent.

zc.configuration to get exclude directive.

0.6.0 (2009-02-19)
  • No longer uses deprecated z3c.layer.
  • Fixed dependencies and tests.
0.5.1 (2008-01-24)
  • Bug: Fixed meta-data.
  • Bug: Fixed deprecation warning about the Zope Security Policy.
0.5.0 (2008-01-21)
  • Initial Release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.