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 to 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) ...
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.11.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78b5f0a4391726bb4c8271e9c723929cf858d5c9cd116ec0a3d8b6d759182a6 |
|
MD5 | 303f51f18f9b99351451c2bf60f2d6c1 |
|
BLAKE2b-256 | 4bf000bdab3df0b3f005fe9df9e4176b501e1d390ffa1fb235f47373b99e4da9 |
Hashes for wsgi_lineprof-0.11.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ed0d0af018de2c9d5bc0a7e1ec463911651ac402a7719961d1a3e6a711301f3 |
|
MD5 | 58099203ba2bd015110dcf69ddb15812 |
|
BLAKE2b-256 | 6e184cfb5435e0e1362a57cc64d393c325f057f569401bd8b284be643d3ec366 |
Hashes for wsgi_lineprof-0.11.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e634959b99437abb8e76d536085acdc4d715957879ecbc461be48450d28e0ed2 |
|
MD5 | f090ff3cf9b87078c81bae56b55b05a5 |
|
BLAKE2b-256 | 363acea6cbe9340d3065b40cca9e0495472cebd16972f64e3fd0d02c0b4e9dd7 |
Hashes for wsgi_lineprof-0.11.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51cb484ad8f2e12a3a8bdd8b2348e2118d170c1a765510f97b1036cb0a5928f3 |
|
MD5 | 528eb143caa02f5b45290b61daf9f86a |
|
BLAKE2b-256 | 7af26792d55f33f19bc1775a32f67f2765ad4edb862f3de516bb7a1b7a5dd552 |
Hashes for wsgi_lineprof-0.11.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6b4954fdce375c26f41d1d8a772d46d64c81c42ac2a22897f1f3d32ef0e7cf |
|
MD5 | e1b8cbc9ff09c705c914d1fe5722819a |
|
BLAKE2b-256 | 10482472396ce49750601e1fdd8de593ac7736e2b2743d0f63dc540130fd7729 |
Hashes for wsgi_lineprof-0.11.0-cp38-cp38-macosx_10_13_x86_64.macosx_10_15_x86_64.macosx_10_14_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e249f0ae5f0957b9f5fc4ff99381dcae0b38cf7773d3eca126b5547215d768a |
|
MD5 | f992bb2ae38559f83a651ac6a0ab8f71 |
|
BLAKE2b-256 | a5b70edde1096a7da619e21edcc332bdcf06d2bf31fc820f274abff42a163243 |
Hashes for wsgi_lineprof-0.11.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8765ca2c7a4a5f0143014c810026ce057f2b34b04ee4e97b9bd63c3b28b8ae |
|
MD5 | bcbbf37b69632d0567f21581714cad2c |
|
BLAKE2b-256 | 6e8364d9256438cb68c10ea2f8b0f8777951fa1e24a5edfca25a65936039cf4b |
Hashes for wsgi_lineprof-0.11.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 477fe68d880336f781ff9da67ad2c19462f287529dc87d85b069a8358da9d05b |
|
MD5 | 02ff2e857824d8489883a7a39e7cebb3 |
|
BLAKE2b-256 | 4139c952ff4263f22c39e5d1f02f6897d86b77596f87bad6b41bbd8ca0ae71eb |
Hashes for wsgi_lineprof-0.11.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4924014668526691468c8ffe2d4c9649876ad406e8f30b6d196679dcbb712e98 |
|
MD5 | 7fd4777b5ccc283991617aff7e8cee19 |
|
BLAKE2b-256 | 04014ab0d1acdfa5e104dcb201f7d91619efaa581f58f05536dea23522431e8a |
Hashes for wsgi_lineprof-0.11.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f82acc7988bfee03887bf356604ce5ddf6c63896f216a13d46d548c7ed68e1 |
|
MD5 | fd72cb55f3482884e33b259f9dec8599 |
|
BLAKE2b-256 | 4c217606a5f3fe817d431b0bcc956ad9ffb8b4b71b03df218cca661602241761 |
Hashes for wsgi_lineprof-0.11.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f129006d26098785a5346472b9b66f7eac71a05a9931ab26bb271d70ba925908 |
|
MD5 | 6334a14d553dd3362b6dcc8875b89d26 |
|
BLAKE2b-256 | 73fe0e2a535e53ad262d0dc3ab6e5bb2714996f7515af8079811d385929c9d3d |
Hashes for wsgi_lineprof-0.11.0-cp37-cp37m-macosx_10_13_x86_64.macosx_10_15_x86_64.macosx_10_14_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7fd5bbc0dc7ba824223046a62c35ac6be4510623db9261f135d0c3674f434b |
|
MD5 | 050cc06f0356bfc0cd48e0ea6c394e76 |
|
BLAKE2b-256 | 5dc3f5cc5397f7f126c6c5bbd55ab0566d1b621f8b4f41812de26016339a03fb |
Hashes for wsgi_lineprof-0.11.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1fc5ea39e87632911121bff2c378a28fcc175d46e68dc25220fc2d35cc0823 |
|
MD5 | 20167af1132e0d47c4f9b703dbcefb30 |
|
BLAKE2b-256 | bd3e40aae41be62bffa5af0022f662a15eb3f995ecb537170d8035e0cd47e567 |
Hashes for wsgi_lineprof-0.11.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f0a2a04179bd89dae426623b49d933987e0a5cdfb6962c02f54b436963307c |
|
MD5 | df005078b5bdb0f74fabe99e3cbf84e8 |
|
BLAKE2b-256 | ea6283b7fe6d0770d1c904aba72728708c78f70fb6395b25ab928e7d3ed2217b |
Hashes for wsgi_lineprof-0.11.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259b275b5585a1b82d53e726ba5dc361a36188d0cb39828d9946ec9af00c9f3a |
|
MD5 | fcb2976187a31d7334a5fc9e8383e5c7 |
|
BLAKE2b-256 | 7ff57a66e2e36a976cbba615e9dfb8b9b5d0f759d114937eac192a33ce778157 |
Hashes for wsgi_lineprof-0.11.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51bf4bbda003e638c9cc4c57d422a4408ccb209015d81ad43dab6037d50abbba |
|
MD5 | 6db6317f56348b2a42f3a25975fd7a56 |
|
BLAKE2b-256 | 820d7096c2bfeaad9d4faa3677e5481868356bf3ed7cda4faaef7bcca6f6ad76 |
Hashes for wsgi_lineprof-0.11.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fdec30e00d3745c990e8e2b34b785c3a41270d9070634bd962ee064346b13ae |
|
MD5 | 4f87509b941fe91f73c92c3a7d2f17dc |
|
BLAKE2b-256 | 6c1ed9357cb6ea15b0c5f25f574414e35bdd50ecf49c4db0cb7a7bcbc8636717 |
Hashes for wsgi_lineprof-0.11.0-cp36-cp36m-macosx_10_13_x86_64.macosx_10_15_x86_64.macosx_10_14_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ede22fdd570a72332b336bab8b395026046441d98c49115056d6156e8072cf |
|
MD5 | af2f80cd98db8736b7d8be545bfafe0d |
|
BLAKE2b-256 | 51fa4c924ca4bd617d938625c02c365f183320b4780103de881fe45cba399418 |
Hashes for wsgi_lineprof-0.11.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbe89fe9151e31518cd6458f1e1e5dc2eea04dd5e74d94816a1503d8a200c27c |
|
MD5 | 0342e933de1caa58f08fcc09b7b2cce9 |
|
BLAKE2b-256 | 577e9d5cb713d08708ffa73e1252df493b228661cae1f690535402c61eaa9aca |
Hashes for wsgi_lineprof-0.11.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9a4ee2cc9c573d313df50cb3f4a81e352b5f79ccdfbf77f0f15476e442f58d |
|
MD5 | c15b97b4ea55695ec35f24870ba2e178 |
|
BLAKE2b-256 | d1f3b805cb53ff6627f7cc9adec5354991aba366a083ade06293ee830e62cd12 |
Hashes for wsgi_lineprof-0.11.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1186c7176ee1c4af41b772d1c16ee6474a099e95047b1f5e2b6e6adf114b1ef8 |
|
MD5 | a63d1e2dcd68856a5f8d2aac87a699bb |
|
BLAKE2b-256 | 74caa8ca7db574c574d9c33896d68fe3bc48befafebb0373a8686859cce814f1 |
Hashes for wsgi_lineprof-0.11.0-cp35-cp35m-macosx_10_13_x86_64.macosx_10_15_x86_64.macosx_10_14_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e29828403b93cc8a0cd2f8ea9671b106e0ae95f7a2a808e34a616d837f8925f |
|
MD5 | 400b6a26974dce0fe3753555c39105ad |
|
BLAKE2b-256 | 66350f431caab3d7eae322479c508f501494a2269c4c701d60fd7c7d49c517d5 |
Hashes for wsgi_lineprof-0.11.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174b533ed68a8a05036d3e4a7a8781456f8287f590459ffb682c05466b1d80b7 |
|
MD5 | a8bb024268ddc510e7da420ddd78f452 |
|
BLAKE2b-256 | 7e4045955cf454ff6a0bac312f6123f775810ed77845026c0b0b030ae481e196 |
Hashes for wsgi_lineprof-0.11.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1442e5c517e8995dee81c58d147e0f4987c588439d520b763ff08b96ff8919 |
|
MD5 | 007dcf30ae758f7093b0bcd7e86e653c |
|
BLAKE2b-256 | 4d97c7cba55c6591bde9ff796621ef107c41a6ffadab30c67ea584cd29012b9b |
Hashes for wsgi_lineprof-0.11.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2df24823cf404795ce8545e2ca7f9d20622af018d18ef3c4fa328eb63967ce |
|
MD5 | eddd9edea18aaace87d57ced5c643a38 |
|
BLAKE2b-256 | 9c7a1f35dbb5db691a056f762708b2bfae2946d6676888c57c0f8aac2296545d |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48bce83b2437e9b701d64bb3ff22c647460174b8d6950efe205e858d66cdeca |
|
MD5 | 5f618c3667423b2cdd011d50833c39ce |
|
BLAKE2b-256 | 3945ba2850542bd757008182ecb4b91ac64ac208193837897e2d8d5f2600ef87 |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7e5a6c3cde54ff583c01b972f175b85a455fe6e681bfccb443fb55c0e9731d |
|
MD5 | e1a5cba08baa8159b7f38dbd74121187 |
|
BLAKE2b-256 | e47fd5b31b62f0f531da1114704a38143c0f6faa0dce548d11ccefc6b102e54d |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1cfd4e2b1fddf4cecd0519fb8eab438e677fa6e29e4a14a05fef8c4da89d0b7 |
|
MD5 | 179ab5048653e5f31333fb425990fa52 |
|
BLAKE2b-256 | 376016fe39970b4c0fe63925c23d52fb95b294fe45ba8e38950e5996925ca816 |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5010665a1060f957923bfd393792e67e394116d389a15bebbd224fbf3b6b53 |
|
MD5 | 52db19ef3039ffcd97c343fcbfd10e1b |
|
BLAKE2b-256 | dd2dec368edcb6efed2f901599a9a932dabe0b17ac81dac60214ea07b1d4bc3d |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e40cedc5d8244434d90d817c2a5239f90677b296de5241a059ac640ffa461105 |
|
MD5 | 926995c54e319f35b547f3651bdbc8ec |
|
BLAKE2b-256 | 431b959edd2099f8aae991b9be93772f52011811ea92bae10c4cb68ece2eece9 |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 974114897e145c16f47a0f0fdd8da90ae1f696e2f5dbbe3bd16ebc0fdf3f7df1 |
|
MD5 | 3d50c4ec5ffd094b99daed010436b78e |
|
BLAKE2b-256 | bd521ba16195872eed98ad76c7234ba15f4f0d3f111e17ce4b516a6a34b91e24 |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c158589ad34734cdbed61a386ae183475325ad70a38b0a7a93b8e49b01a95331 |
|
MD5 | 8b1db99f54f57a4a8439894ea6286836 |
|
BLAKE2b-256 | 96942a6347c0b23cd46d5d62045476b7c3674508957e1da90b10f452c35f5186 |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec96831083652972271832ce4959e8f5ac2a5ceb76d07558cdd44a0ff953c421 |
|
MD5 | 8e8e8c36be73be5b55e6303dc8826caf |
|
BLAKE2b-256 | cd62761e97cb2c97057597974bb0b5fc69477bedc10471bc2046d05e004cf04e |
Hashes for wsgi_lineprof-0.11.0-cp27-cp27m-macosx_10_13_x86_64.macosx_10_15_x86_64.macosx_10_14_x86_64.macosx_10_12_x86_64.macosx_10_11_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81dcff68aac1f6736fa8e107cadbc076d28fa40d7d8ab86150197fbbd0bf0ffa |
|
MD5 | 40c3c5405ad8b03d94a26f874c496132 |
|
BLAKE2b-256 | 4ec63c95b6f69a352d8fe2de3b44fe5102682b34b85cce4d7fe2dad54c4a6b3a |