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.10.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216ebd84e05b7bdb837ae3086c832731ad2b65cfbd6d68e2b10e50b1b37f8242 |
|
MD5 | 270642d45a17259d20d245e052995e93 |
|
BLAKE2b-256 | 79f269102eccd7ceee9d0f9ed84d37146ee795a5be12cb089a0bde6ad486ab60 |
Hashes for wsgi_lineprof-0.10.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8375f83a87983879ddcaf1adc776244f021e5651766cc6c20f127a3489bcaa97 |
|
MD5 | 7a41c7b000b2e2733c02848c0fe169e7 |
|
BLAKE2b-256 | 39664fdcd0f8ab6ef00f217f5e7e6db24b80aec985b65ed9574bc091e4a4dfd0 |
Hashes for wsgi_lineprof-0.10.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e62d52ebb7e44dece6516a19cc9dcf3bff1de8994bee2be2efb9b476910b14c2 |
|
MD5 | 02ff07363a7ba36cde4c42de5a0fe640 |
|
BLAKE2b-256 | e83d77c500b3cceb739d70d676872babec0f9c1e430e9de887795d323301fef9 |
Hashes for wsgi_lineprof-0.10.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c19b74af1589d1fe2cab3412e27790a6fc620d4459f4d28dff8e0067433b292 |
|
MD5 | 6ac3a9db796ca9aebc5f8e2834ae02a3 |
|
BLAKE2b-256 | fc9edf8e3e761ab5f462d43a337da423249cd7151561545dea0ec303f383bb76 |
Hashes for wsgi_lineprof-0.10.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eede794b21213c4319fda05d997f1c3e237e2c2d9129627c19030fe532b89b5 |
|
MD5 | 59bfcadfe450820f98aa5d5385f063e2 |
|
BLAKE2b-256 | 15742b53029ccdb1b87b84d3ad2bb126f8824223c87d752d4270433943007e43 |
Hashes for wsgi_lineprof-0.10.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 | dedffb79312644de30355dfce14bc4b07cbede15e7ec2fb230c12b7c05e20fe3 |
|
MD5 | 3d1f08ea21e2143fa9b286813f7e7c7c |
|
BLAKE2b-256 | 7b48066fd5f6bf30ed179072441de7b02341cd724b4f51c84059cbb094a222db |
Hashes for wsgi_lineprof-0.10.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5c8a52b78acf7d69daeb6cad7a45f7c99e55bed9e289401f481413afb10002 |
|
MD5 | 1d403ef27702bc031d1ebb8807513e38 |
|
BLAKE2b-256 | 4a92c14dc8fa817bddb5593338af09026a4fe6dff520a41b2f447994c1126069 |
Hashes for wsgi_lineprof-0.10.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4cb590abf229e6e2e5c6f500e1485a80050cc8fbde3e92b74a17c69e3e328e |
|
MD5 | 4183f9278126ca98fb48345a96e8d86a |
|
BLAKE2b-256 | db8b0301423d53701041be8d79a1d9b643b391197927d92f09a8ef1c61d0dbd2 |
Hashes for wsgi_lineprof-0.10.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b1d555a13e4ecd3538df9d80591098ba02c3ce3981da2fb338a94398afb30dd |
|
MD5 | ab9be79387015ca359ab859294e0c06d |
|
BLAKE2b-256 | b4eff9316bbdb29c93f8732401bd467041d8dfbc9e4f8ec41fcf3d4fad727bee |
Hashes for wsgi_lineprof-0.10.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 252596ad5783cd813b167470cfab1c155f6dfe0e9a1edb9102a095cf0067823b |
|
MD5 | 75f3652a87ea2d71c8818aad59b1b96a |
|
BLAKE2b-256 | 87424197811f3519a11fa289e4a5018d55a0e6427ec05f379f95862dd0f6e360 |
Hashes for wsgi_lineprof-0.10.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ed9fe1986fd220fd0e01d5be757482b8ce723f0aca92c8796eaa1ef81035df |
|
MD5 | a7856deca9526b81eba1fdc5aebca6b5 |
|
BLAKE2b-256 | 343778628f751b84cc82b84b5b07feada5a9abac2bc52473d1a67251a7b2cee1 |
Hashes for wsgi_lineprof-0.10.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 | 24a6544a90556d06e20706a6c42e36c5d6cf2f3cd1127afe6789457d5349171b |
|
MD5 | d3f15c9838af9e1698e379bb60e59dfd |
|
BLAKE2b-256 | 09b94a0256e04452156d84130b47f6e5b009eb4d83d570e588ab56110d35679c |
Hashes for wsgi_lineprof-0.10.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23069f3c7f403ec4a1c397c265290e485e20442063054f45a8d6286270b881ba |
|
MD5 | 2bda47747c15e7f090b90de7f6535f65 |
|
BLAKE2b-256 | 0e1552631d2108f6a646ad9721f27a61efb2f6f3a0b161feed505730bf88936f |
Hashes for wsgi_lineprof-0.10.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75edb0d5db805d4a8bc7bc6514ba1332253e7484a7222d41d61514af5e47d683 |
|
MD5 | 5aee988df04e5e55bcb025d4bfbc33c2 |
|
BLAKE2b-256 | 5998e95977333d463f0b5a72c2b01e78d55eef40b17cd4fb34d1248c17c0d010 |
Hashes for wsgi_lineprof-0.10.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6908e5457f5fb20ccffd1d1c83360d90f4ed5ce7eb302e1a5535dee0ec06f7e9 |
|
MD5 | f250e252af6f7b1492b5854fbb057c23 |
|
BLAKE2b-256 | 113234202961946cb27e42f66bd42e3e3e4989457b16d4ddb0ec3d732176bcb0 |
Hashes for wsgi_lineprof-0.10.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea258567e98d49f1b4ed0a88649ba450936464d9d8fb6f9662e8ecbc23f839ee |
|
MD5 | 63f6c469ab500d5681788b4b99b9ce49 |
|
BLAKE2b-256 | 0126d275a7e45bc83124fa1cf5c45bfd0d1f1631176ddd3268b88412c754a5ae |
Hashes for wsgi_lineprof-0.10.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be8895d684874bf86b6c7c393be9c173c30fed2db21394ff05c21f7c258afb18 |
|
MD5 | 05e1b4b99b259d9a1b8443d7d50395cf |
|
BLAKE2b-256 | cd57b4db272405c2f50d9d0cd065c04dc29ee959232a94e48b54dcc7673b836c |
Hashes for wsgi_lineprof-0.10.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 | c0bb7fd602abb193f00b2d98d0d3670d8f63ab44a40c020dcf415714ce854639 |
|
MD5 | 1e3c9c6ef1f1332de2aef3d5671a00b3 |
|
BLAKE2b-256 | 72aa5198897eb01a67817a8ac03451a7333cca0d1c876e74080efd8867c0bbf9 |
Hashes for wsgi_lineprof-0.10.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a665cd29d45eb9db44d4c210fe13ea9422ab1c965eaa8df690183e300f80370 |
|
MD5 | 0142f42dd91a247f0744ba8b3dfc1af2 |
|
BLAKE2b-256 | 2ee3ec483fd6bb23d2b503deb14afb730537942287b0ecc24aad02fdf7d80adb |
Hashes for wsgi_lineprof-0.10.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5416ce535c9211a8038085d6fe8cf260b791d32758832fee0a8bca1b7cc81e6 |
|
MD5 | 19584d6ac88255235bb760ba1cd5eb2c |
|
BLAKE2b-256 | 66ec6afd51257df4ffcf3517b325063f41133a88e20677edf443e7efe062f36a |
Hashes for wsgi_lineprof-0.10.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd000a58021ecdc2e55c68675fd0475bb0b7e7294c7b4547d8346958a26a207 |
|
MD5 | 1488ce68a11ebe3a7e4567bc70a9e0de |
|
BLAKE2b-256 | ee333bf21825e97885996ebaae4f11e9ce64316a906eb26f751c38851e043d10 |
Hashes for wsgi_lineprof-0.10.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 | af808b987b0be25e8fc5dacd8773abf60fac6bfae3c72062d6d9a8ffed9bc026 |
|
MD5 | 061063d9355a5f47381f41f847939de5 |
|
BLAKE2b-256 | 65c82d30262ed6a1dfef098ee5656c607e81afe3625376714690b76862606467 |
Hashes for wsgi_lineprof-0.10.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 899e54d96b8e0e7215ada35798f0ab4d2c308ad965ee9df30b910050119aaae4 |
|
MD5 | 02e1b182ef8715ad7c7c2eb2aa0126c8 |
|
BLAKE2b-256 | d390c49d2d5ebc716f3b6007f7ef9a617703b506f5a3aed05e907ad2ef641b90 |
Hashes for wsgi_lineprof-0.10.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cc54dcc80d4a432bd6bcf0161356ac908a14d71005428404a767f1ceb05b05b |
|
MD5 | 31ad6a9537491198b64ce1f2ff13170d |
|
BLAKE2b-256 | de3d8135eee0cb7396851e9c4b3339197b431665eb78201d79ab6350441790cd |
Hashes for wsgi_lineprof-0.10.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad18460b1df12962ffa11e8b3202080a7e2c327c8ddbd344707917d79c9da5c |
|
MD5 | 91bb820929580b1d81466463fb49fb67 |
|
BLAKE2b-256 | 37a8376622a7e4df1809f6a25ee94c8e8c37ac6115f2e893ba308cf6e6e2fd2e |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9074ef5095d802bf8b83ed448a49d9825bea288af0ad8ca89a9ac20eb6cd478f |
|
MD5 | 0fdf46e6df9967fb22fe53143ac26cde |
|
BLAKE2b-256 | 0fdcc4fcad16fb09b4c8da87233c54571f2e2c9c6e4f43b0ce736bc2ecf868cf |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2074bf59a483b6fcf578c0aa235d2c1ee7b29ded40255789223dedd6df116667 |
|
MD5 | fc07604285eecb3e8e23333500bb1269 |
|
BLAKE2b-256 | 0e9dafdb13472807654987212225783bc31c333c82b11213d4e1c9f62832e43f |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9ef4bf101eeeb30e48453ac6e8b542f5e75d16f806ea87e29674e33b024b4d9 |
|
MD5 | 14b2813679db5043f6a5db49f056d5a4 |
|
BLAKE2b-256 | 0838bc9dfd84f2c09d3e6f3ddd470edf75358acaaac7593e7b6c8ba3727247dc |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed3266e1201fda4abdd944d05dc4c1248b38eddc17fedce4046a04530bb1338 |
|
MD5 | 0d1682d11200c406b6bbb21e33be98ff |
|
BLAKE2b-256 | 058be915d9b80401bf71307e50be3676b9190fe6cc899b9f798f8fb6471712e7 |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e890756b203c8105256ad9a4959c0ace61779bd10aa3f31bf3225586d5c392 |
|
MD5 | 9f149e729c3443003c704a358bd567d1 |
|
BLAKE2b-256 | 5a2edb754f921a23bf4005664e44a719f59b73462876f3a9f82fb59e156f6e12 |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d182fca32b840636c8cabf5c1555b1072821d918a7e49694bb3f0b24f459d37 |
|
MD5 | f4f1f8eef56d67c7d853bea8500fc640 |
|
BLAKE2b-256 | b9679d8d369cdcde6d4433e6ae9461f7c9b5a21c86b1786deaf59fba7aba6da0 |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a36b7f6224eac7ab54e74e7ca906c7207874c1a4fb2bb81ade65bddb44fe510 |
|
MD5 | 6d0278c099e81a3d981c3a6b76cae567 |
|
BLAKE2b-256 | a21f774a4f6124184b7cde6b00a56e0019df20ffd94bea38af2ee0a61d603db5 |
Hashes for wsgi_lineprof-0.10.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8018a0a53202d064eca8e5e290635e91f2266409fcc47c80592583a24b96a7d1 |
|
MD5 | 65855a0af27e6927b891d5d5d79ae960 |
|
BLAKE2b-256 | da2932fc588cd7995c03218012e74b63d5a9bdd7e069044e7bc3f293a80fe44b |
Hashes for wsgi_lineprof-0.10.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 | 113dab0c26d7e954f4387c40bad374f43c187b42966244523e7be0912a349e42 |
|
MD5 | a21b739da344fb35737a0fa6e8206ba0 |
|
BLAKE2b-256 | 1097c27ad87d1f4fcdf472c5bf9ffd74ef2c42710825db5d5d0d7f64d1cc111f |