WSGI middleware for line-by-line profiling
Project description
wsgi_lineprof is a WSGI middleware for line-by-line profiling.
wsgi_lineprof has the following features:
WSGI middleware: It can be integrated with any WSGI-compatible applications and frameworks including Django, Pyramid, Flask, Bottle, and more.
Easily pluggable: All configurations for profiling in one place. Users don’t need to make any changes to their application.
wsgi_lineprof is not recommended to be used in production environment because of the overhead of profiling.
At a Glance
You can use wsgi_lineprof as a WSGI middleware of existing applications.
$ pip install wsgi_lineprof
Apply wsgi_lineprof to the existing WSGI web application:
from wsgi_lineprof.middleware import LineProfilerMiddleware
app = LineProfilerMiddleware(app)
Start the web application and access the application. wsgi_lineprof writes results to stdout every time an HTTP request is processed by default. You can see the output like this in your console:
... (snip) ... File: ./app.py Name: index Total time: 1.00518 [sec] Line Hits Time Code =================================== 9 @app.route('/') 10 def index(): 11 1 1005175 time.sleep(1) 12 1 4 return "Hello world!!" ... (snip) ...
Also, you can check the result on your web browser by accessing the special endpoint /wsgi_lineprof/.
Please check the documentation for more details.
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 Distributions
Hashes for wsgi_lineprof-0.13.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89e88f6f667a2106b2b1084ba324e1ff9bc5cdaa4f663795584acb4a9b6c7ced |
|
MD5 | 5e87e0d4d174b95a4424c223ed1386ce |
|
BLAKE2b-256 | bbc6bbe7fb4eeaad7f918214dc6504c0ca732c1c41ffac31859828af22429db7 |
Hashes for wsgi_lineprof-0.13.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6989ef629fe59e276e931a385483e7c0f75277239615364b81326d2682bf898f |
|
MD5 | e24a1efcca8d220abae6fcea7bd117e8 |
|
BLAKE2b-256 | a93cc2624e7a01c08effbd1d2b1e7f89f2f4233b786e89ada3679cedf6193598 |
Hashes for wsgi_lineprof-0.13.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15f5b38014b66619e3a8a2e0da6518b1627bc7b33bc7715d0bd117c5e09f401 |
|
MD5 | 0d4d556290343b9cf886fe6d49127630 |
|
BLAKE2b-256 | 081379860bfa1ee9b7c910c7ba2e6e35fe8a505f7649f68309131d14c8a94526 |
Hashes for wsgi_lineprof-0.13.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 477614f0dedc1a92fefcc0dce937db2d2e238bcf1e07a5ebd1f25bc477b2ea2a |
|
MD5 | 2592006f6327b7109984da0c49f037af |
|
BLAKE2b-256 | fc93384950640f9a1aace7531a742f00b608273f214c29355af0352381e573b1 |
Hashes for wsgi_lineprof-0.13.0-cp39-cp39-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0761571105c84ca2d0b73197770eb3be7bce921ca61cede5be668e938b35cef5 |
|
MD5 | c8eab5eaf95f7c3d7cfb38fff0bc88f2 |
|
BLAKE2b-256 | 9ee9e39d5fb501150f7eccd3de4e963ce47c9eafd05e086d8254dcebe08c3630 |
Hashes for wsgi_lineprof-0.13.0-cp39-cp39-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_10_13_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c88d113e45803e58b4e2a40bd5d2dfa92b728053bdd1f37dd4446410271262 |
|
MD5 | f2a677a0b6f091610fd2dde67834c317 |
|
BLAKE2b-256 | 3e2dea6e6e0f9d8a2364eee9f65ed42e3e1e44d639ff4e3258ce76675011622d |
Hashes for wsgi_lineprof-0.13.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c758accd072ed7e022a53003e7eebe9d9520ef2811a971ef76b167464e5f735 |
|
MD5 | c3ea1752b2bbd424eabe028120d29ac4 |
|
BLAKE2b-256 | fda229cd723a7474ffe1bcd386aa7111b3cb4649e78ad69e1d239b3ba4339c41 |
Hashes for wsgi_lineprof-0.13.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 704d4691f753e95765598fb80e25c24e00335b46db04e0248f9c657e65d739e4 |
|
MD5 | a54887e105dd653655e42053ac5702f5 |
|
BLAKE2b-256 | 63c06d762b50dff30dd39202553957ad10228fb00e70d049ffe7eeebcacbe108 |
Hashes for wsgi_lineprof-0.13.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b16295526de436cb47c5cca3d2c472bdaeda58b3ebfa59b4c17e295ed749e42c |
|
MD5 | ef098765f6821a993ce3f71a66f9f808 |
|
BLAKE2b-256 | 0b9167564971b0a052fff22ba2d3bed56d66acd837e328a635f884354aab91b0 |
Hashes for wsgi_lineprof-0.13.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c2fc688aedfaa6d5bcf2b2e11825590bee03ef7778a5232647c16adaa66b55 |
|
MD5 | a4cffac099c3ee648cf35d038639e5d8 |
|
BLAKE2b-256 | 755a9abc39575388c44c74d7722c034fc9e6e91f92cbaf0b70f528b166287f26 |
Hashes for wsgi_lineprof-0.13.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f9081451b48e212c1653dff6aedb6c51a7cb866f340b60e1794825821e378ce |
|
MD5 | 373c09eb666d8de1980f99e0d055ae84 |
|
BLAKE2b-256 | 9cc8032d3259e9b0e035c43c1fe722a50d8104a76817ddc14a284149c352c9e5 |
Hashes for wsgi_lineprof-0.13.0-cp38-cp38-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_10_13_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b30bc3974cbae65edad010f06c4e7c5b56a0e64351519f512f17d70a8c9994a6 |
|
MD5 | 9eec92cfca0827509318f393d10a09d3 |
|
BLAKE2b-256 | d9233af4e520dde6fb437dc0105c9a819bdf2953a66e371fe38df55772251949 |
Hashes for wsgi_lineprof-0.13.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4a47d0c136d2e2664a4c130866b1d1cbfeb925cae8142997f9b750f98c5080 |
|
MD5 | 3004934b89d55c9de013d8de0f8cf4c6 |
|
BLAKE2b-256 | 78f2016ef0a9ef73f79b8d2edafed7fbf9ed6493f15b918c7942d432c3c1b021 |
Hashes for wsgi_lineprof-0.13.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d8b7aa11de4364ba2d7a4436149015323251c571f37833e9acf76ae2c8c897 |
|
MD5 | 2340aff63943ad78a19ec235da46e7cb |
|
BLAKE2b-256 | 0c826f303d8a01390a06683fd8c6812047eeb7c65c5e5633243c8cfcccc5dba4 |
Hashes for wsgi_lineprof-0.13.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55987e6afe02b1cab1c6f8148e18929cf4fb1063936997980ed514fd2f689aab |
|
MD5 | d8d40a403a1764f62fec6ec45ce3c07a |
|
BLAKE2b-256 | 1de776bdc002529e13c38dc2745a9baefa6239fc1d40cd4e735dd6ff5b38c3db |
Hashes for wsgi_lineprof-0.13.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16cad81658d7a037a13f1d0ba29e9f04d607d4299d46f000b097959951b21fce |
|
MD5 | 42d58920dfc5d7985d5df92eb5348b4e |
|
BLAKE2b-256 | 8de8af1cf6efcfa8f588f9592a0fe6c7981e7c14721857b1b63cedd0778447ff |
Hashes for wsgi_lineprof-0.13.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86f9fdf4b5b7ae64c1bb548a5024c8aa8c824ff3004a6c085a35910ec8a59187 |
|
MD5 | 1c58f4dab45688dfa55ae60e2d05ca99 |
|
BLAKE2b-256 | 2769b09f43b86eed7aa60dfc8a803bab597015850b6bb4acecf580f624e27372 |
Hashes for wsgi_lineprof-0.13.0-cp37-cp37m-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_10_13_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e8a311e1e1be7c96d97cde71331aef0e183e6ec4763fbf8c2ae74113e9955c |
|
MD5 | 5fb2373140e605e81f34b7d75c6114f4 |
|
BLAKE2b-256 | 929d4911c28ed8c138fb2e7a817cb8593e2a396da0415c9788535ee27ba5b3f3 |
Hashes for wsgi_lineprof-0.13.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c8bcda2c0a74480694cfc0ef64d5d1d223eb3a781e39b5b2a68695cf064de4 |
|
MD5 | 1386d249f7131375ff7baab81ff5f32c |
|
BLAKE2b-256 | 3e9104c5144e9066bc65c8457fdd8ff0b6a5aa6d078903327c5cf97ddae8ce05 |
Hashes for wsgi_lineprof-0.13.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2c78c3e1b1e6f9660ad5eb625d471e8a63723e78e6f7bde8d6b4fe15856253 |
|
MD5 | 8b8f881bc9ae483248b3715901b3d58d |
|
BLAKE2b-256 | 8f3b229f3c950738a9e2ff2667193d2cf50791729e74edc3c119bba1fcf0afff |
Hashes for wsgi_lineprof-0.13.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d056b980a718f4e0a35d25892e71d24a1b9751fd112c39442eec9f10722bd315 |
|
MD5 | 7c95c3d7a3ab5480dc356d204720dd23 |
|
BLAKE2b-256 | 21c24b23e1881f06e900f6e44bfe88a40bc30107674b80603559f5a70a094d69 |
Hashes for wsgi_lineprof-0.13.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1a34a8e66a6e17209a72abfaab23e36f61bad77bbdfd12fcffde3c6d88c16f |
|
MD5 | c8fde88fa814b872556f04c996ac5b84 |
|
BLAKE2b-256 | 35608d7dfcbe2fec445e2ee6beca94307cd15959c5c5f22ab86cc031b17dad67 |
Hashes for wsgi_lineprof-0.13.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bf52fec1dfdf11709762a5b8183f77d18677ff3f9078eee4b05c4cd7fd5df3f |
|
MD5 | 3e6662a1d1a78ca5f8c663b2998708ac |
|
BLAKE2b-256 | e4069e9570ae21d1f1b3ff5a6d8f326628ebf6494a9d073298d26460136abf84 |
Hashes for wsgi_lineprof-0.13.0-cp36-cp36m-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_10_13_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932e30df1f1a2bf7f3087931ffdccc938fc3f43953ad2077c3348d37a63bd77b |
|
MD5 | 02d402423506f1dd5f2b2db51c330a87 |
|
BLAKE2b-256 | ba4b1525153525ba5c63af57d95c6882018e6cf0efa44987dd587d3e9b462034 |
Hashes for wsgi_lineprof-0.13.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7de01df77c46e352e7373ce6141b566432bf682e28add218a5791fbd3ec6d4a |
|
MD5 | dfb4c126f9ed195818f17778f29ed127 |
|
BLAKE2b-256 | 5cb16b377fbf14b0603e5dbe78cc7682eca14bf0478a95794fd9e1ebaf05e60e |
Hashes for wsgi_lineprof-0.13.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d1ff0b5a01e2982ea6ad60685c41fda835b8957fa50b708c9164ab085e3c07 |
|
MD5 | 48eb628b6addd5de4bb590a812e3710c |
|
BLAKE2b-256 | 9f0aad5c4b335c34fede7b0f348e7fe9c28c14169822398c330808235e801986 |
Hashes for wsgi_lineprof-0.13.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fec2f93e0c11da74b896570d1608f64e393c58867cc7d214940f4b7c8bdcaaf3 |
|
MD5 | 75d262b998cd5de343f5bb19ab100e84 |
|
BLAKE2b-256 | 44901a6f16172a0cef9c9e364b76bd915ebd82151855f5364dac75fb7840e9cc |
Hashes for wsgi_lineprof-0.13.0-cp35-cp35m-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_10_13_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ddfcc4b72ae47c49cc17ece4b13ce818aef7d24bb267962baccba0ad3544a4b |
|
MD5 | 655df2c32df9eb0b0a52e49195ca0144 |
|
BLAKE2b-256 | d2e55e7e05de15ac5c9552d16e6c632364990ef5f8b2d1f17718213de38fd9a6 |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b850762ba60f612cd1f76ed2fec540f29c000ecac82850cd91d35f7f40a7e4 |
|
MD5 | 4a9a28ab528b2e017613655ea8850547 |
|
BLAKE2b-256 | 4f0a07b43ea91117ff192f99c18a951e3a039f019979e0ef4fa68d999eba9853 |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e29dc24e64939ad8f7aa9c25bf35131a492b5972e1e89dce5b286c5220b06a1a |
|
MD5 | 1f56fda90daa331c4ed39a03d66cd180 |
|
BLAKE2b-256 | efc2ca51564e48c6d6716fdb4053bd39b2a18653cf024b4523a30bcf606fa616 |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2084ed7d2c4605c8aad68fc290ab0af69313f4dbe5366b965be74c1c9193fe4 |
|
MD5 | 3850fb94f93800cda4b374b7880ec3fc |
|
BLAKE2b-256 | 5d0d87e2623403d03d25aa0dd8dbf660eb6fae3bd2f2fedff5d31c6e49d4ed6d |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3087d2b63ed4c577d2ce02765df2021900e906aaa891f64a8469df328fd16e23 |
|
MD5 | c2ebb7ac2e35938b0af6ccd987b62af5 |
|
BLAKE2b-256 | 9f5ebb274af548ce80bbd4e1c3ca5efde70eeda48f4ed260f0d049874119c840 |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9266c5b22418b15c84b52dcc1e613b2ff770d2cb37ff61329f2234b982ac7fe1 |
|
MD5 | 9cb238da231cfe27f268ad4927e9a53b |
|
BLAKE2b-256 | ef5d6c40fa7d00a8eed0dd3b31d43e1507f02d6c9fee53e4bb09af7062c4a745 |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 317bcb9f1f49e1e49c0265a26a260343598949d15be9e44ae46984ae2d8f88d1 |
|
MD5 | 8ecd6509ad6d634fab03161fdb25dcbd |
|
BLAKE2b-256 | 2ac6229c479baf7f2f88f6429baa5e5e85bc9bf86046cc54c032ee2109f561e8 |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d298f760cf3c9f1d70d0ed901f6f525b0f9a81d5bdbaebc12e47cc867458766b |
|
MD5 | f8b02c46d6c17589bb4c343d6ce9e176 |
|
BLAKE2b-256 | 2d5b9edfb2d64cd54f35778422d6aea644e484e7c8479e7c517de58d6da4685d |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf758485324914a11c1aa29f282278300cb1520e16f63061d8016415c05030f |
|
MD5 | 8e0a955af70ad92a348067470cd62dbd |
|
BLAKE2b-256 | 91b3d601679541b497abd0497a6f32e8ee5d3ed1bf32d1b3836a25a31c610e7b |
Hashes for wsgi_lineprof-0.13.0-cp27-cp27m-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_10_13_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9156fd3725aca55f02615490899e1bae77ebeb051fa15ca26291ae9c9281fcf3 |
|
MD5 | a1b9e4d3625aa905d22e11d040de8d45 |
|
BLAKE2b-256 | c63c49afc649c2e7f9e2c756c5d4e6e843c5fa2bab60249c8e437cd1065c99de |