Use pyinstrument to analyze Datasette page performance
Project description
datasette-pyinstrument
Use pyinstrument to analyze Datasette page performance
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-pyinstrument
Usage
Once installed, adding ?_pyinstrument=1
to any URL within Datasette will replace the output of that page with the pyinstrument profiler results for it.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-pyinstrument
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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
Built Distribution
Close
Hashes for datasette-pyinstrument-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3068afc5888529d0d8fcb952adacd28a9defc782b076f07e8d411ca6c2cf148 |
|
MD5 | 9ea73ab1d5315a7f181e31a24d57630f |
|
BLAKE2b-256 | 70528e68e873803bdd89527d9eecc3ed5289129f66e89b6c635da2fcda7b254e |
Close
Hashes for datasette_pyinstrument-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59830489617ed5ae2b89f343a8ddf2fe4f66123f6044d383af666e7b3589c967 |
|
MD5 | 7bd257e5a8e64b7ee5c2d7cda00095da |
|
BLAKE2b-256 | f94bfa2f99ecc523433230633affa15223ad3d87686cc752232b44edf4117d9b |