BrowserView profiler
Project description
# Profileview
This package is designed to ease performace profiling of Plone websites.
Normally, if you want to profile Plone you need to run Zope with profiling active. This results in extreme performance drops and no way to properly target a specific section or functionality (AFAIK).
The product is a simple view that is made available only after installing the product through the site setup and available only to managers. This means that you can even run it in a production site, with no performace drops.
## How to
There are two views exposed: `@@profileview` and `@@profileview.ajax`
### @@profileview
Will run profiling on the current context and download a python cProfile dump which you can load in the viewer of your choice.
A target as well as arguments for the target can be specified via a get param (e.g. `/Plone/profileview?target=overview-controlpanel&kwargs={"a"="b"}`)
### @@profileview.ajax
Similar to `@@profileview` except it saves the output profile dump in a tmpfile and exposes an interactive in-site interface to query the dumped file.
A target as well as arguments for the target can be specified via hash params (e.g. `/Plone/profileview.ajax#?target=overview-controlpanel&kwargs={"a"="b"}`)
Depending on browser, you may need to refresh the page after changing the hash part of the URL.
# Installation
```
[instance]
...
eggs =
...
plone.profileview
```
Changelog
=========
0.1 - (2016-05-12)
------------------
- Initial release
This package is designed to ease performace profiling of Plone websites.
Normally, if you want to profile Plone you need to run Zope with profiling active. This results in extreme performance drops and no way to properly target a specific section or functionality (AFAIK).
The product is a simple view that is made available only after installing the product through the site setup and available only to managers. This means that you can even run it in a production site, with no performace drops.
## How to
There are two views exposed: `@@profileview` and `@@profileview.ajax`
### @@profileview
Will run profiling on the current context and download a python cProfile dump which you can load in the viewer of your choice.
A target as well as arguments for the target can be specified via a get param (e.g. `/Plone/profileview?target=overview-controlpanel&kwargs={"a"="b"}`)
### @@profileview.ajax
Similar to `@@profileview` except it saves the output profile dump in a tmpfile and exposes an interactive in-site interface to query the dumped file.
A target as well as arguments for the target can be specified via hash params (e.g. `/Plone/profileview.ajax#?target=overview-controlpanel&kwargs={"a"="b"}`)
Depending on browser, you may need to refresh the page after changing the hash part of the URL.
# Installation
```
[instance]
...
eggs =
...
plone.profileview
```
Changelog
=========
0.1 - (2016-05-12)
------------------
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plone.profileview-0.1.zip
(209.1 kB
view details)
File details
Details for the file plone.profileview-0.1.zip
.
File metadata
- Download URL: plone.profileview-0.1.zip
- Upload date:
- Size: 209.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa7db19074528f46243380a7fa8876a09a9d9d92cbabaa56e2b4e500045c050 |
|
MD5 | e28b183e9e7f912d7efadcc937d75e1f |
|
BLAKE2b-256 | 848ae17a43e719ce57be517fc246b6435e62a1b741d0f2274c25e369b2c70ae6 |