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.9.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1136bb2be626ced468c5bca687836c228a590c20d4086684c47295aa2a47e08 |
|
MD5 | 62502b2b27d65be0c1160c14594bd469 |
|
BLAKE2b-256 | d21ab054f80bfd9eb0e33c5c3a3e75030f0fd01131dd6cf69712bfec1857cc4e |
Hashes for wsgi_lineprof-0.9.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa5c84bf2ed09a50d8c8a26028a2d4fab512aeb12b4cd94eed7dd9c80a031b0 |
|
MD5 | 45559b4bf2a41e33aea93771e4d436da |
|
BLAKE2b-256 | 2bfebeb356c7e20cf529b5af35c5a4e7c083785c2c76bf30912287b994c8b0de |
Hashes for wsgi_lineprof-0.9.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d963e94940b6b0992f07df1145f187ddff79e0a8bccf411ee62ac22403ded4 |
|
MD5 | 3eeff73a11a431ba1b98d5310af7f604 |
|
BLAKE2b-256 | fa361d855444af59b9b147acfa908d0e9849b6ab8a0479b43f5eb1b258bcd373 |
Hashes for wsgi_lineprof-0.9.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ebe997ed6d097427a5ac03f6686b128dfe859ba29c240551e8f25b33fcc289d |
|
MD5 | 39ba62c50d1aac5a156847255457b111 |
|
BLAKE2b-256 | 55e456dfebf8508225b047d5a741c2c6760c4aa43d9cd28cc53410ff5f69becf |
Hashes for wsgi_lineprof-0.9.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c224576703331b9324d53c4e17db62a784d64e9be6f11ce982418672bd0f7642 |
|
MD5 | f7eb6cb035c71b4d3cb3b3062d4d674c |
|
BLAKE2b-256 | 98fbd7bb50db043ced241b996e4d3c7b171773c1974661ae22dd2df35a4e75f9 |
Hashes for wsgi_lineprof-0.9.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60dfc8a24dc287f44660fb14b8a84ba2f483ccbdb87e800fa804a7ae4c7e17af |
|
MD5 | 51d90b04cebbf32ec96ccfe255cb5dd0 |
|
BLAKE2b-256 | 92b45be26cb7aa6a3c65afa952e14a5e0fa62826009d32a3b74074b526bf397e |
Hashes for wsgi_lineprof-0.9.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0c9f0c185a962abbd256fc62a75bf6b20019c40e3c1a5bf7256beab3a534f9 |
|
MD5 | 5e535cc682ad401fa25f30d049b2ab4c |
|
BLAKE2b-256 | 523353c26bddd954e37d130c44c8dc8aa912964d32b11b23121e07b2a0841f8c |
Hashes for wsgi_lineprof-0.9.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 | d7d73a6d71642609616d2486c4b89ceadf2350df60983013d7a9036b8ae2b1e4 |
|
MD5 | 02dad54b9d0a7f4c94751da5c71de3bd |
|
BLAKE2b-256 | 1a5c9d48a71c0bb0072ad1c1031fd765dc9da644327cf87285825e07e0fd5b64 |
Hashes for wsgi_lineprof-0.9.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64c35190dfc7fe940c3b236ed7d8ba8dcfdcec3b28464470bbb5220008f858b |
|
MD5 | f50838141571ccda13bb33712d9a3255 |
|
BLAKE2b-256 | faba40fde480e9d30a885aaf3dbe06c90762294f552e3a4e39e7f8e5cbcf3926 |
Hashes for wsgi_lineprof-0.9.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8774a3f6ef0d7010db440eaf743779aa3d587b1bb242819705546b03d08fff3f |
|
MD5 | e43eb70907056629fb4ea415da0400ab |
|
BLAKE2b-256 | 8936415c698fec0195e9e6bf2ac9fa7e719518ebd309bbb31642181690d0389c |
Hashes for wsgi_lineprof-0.9.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6de05dc10b33e23dd3d7638690367ab8f7ddbc6c6c7baa2add82a0a1fd61c31 |
|
MD5 | d82b91dc72852d1c622c12f7eb796e81 |
|
BLAKE2b-256 | bf6db28ea5d53264ea06f606948bd2e7c24df6f47cd89ea3a4f61bebe07de1fc |
Hashes for wsgi_lineprof-0.9.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2ba0658ab65834b8d0db94daf8570feafe041c186627fba71886c1fc030e83a |
|
MD5 | a82e16b066797b910099af638d7dbb9f |
|
BLAKE2b-256 | 25bd5669254fe4537d1a8dea50730d7bca2e4871a497e2c1d14677c17c3d6fdc |
Hashes for wsgi_lineprof-0.9.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 | 65fc21495334d55366931a3b9c384940496490ae0a011f8c34a98cf9f2474def |
|
MD5 | 2dba75731a6bf90c34b17876320d2bbd |
|
BLAKE2b-256 | d3d826ea6aae1d19aa4d2f29ed41f99585d6c13abf3bbd4c00326bd7d05d4a20 |
Hashes for wsgi_lineprof-0.9.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b821821b62670f95e04d8d4754226792c674265aeb8b984258bd75bbf6355e58 |
|
MD5 | 79955fa2b4c035ae51d04b19bb2a45d9 |
|
BLAKE2b-256 | bdf88deea5cb70c230460f8acd93bb6c60d03383275e22d37809732ad175f9ab |
Hashes for wsgi_lineprof-0.9.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f818e20cc2c677e05462afe6a920136eb5e195d394e763980ee5d492375e5b1c |
|
MD5 | 57cd415d45a5cb7486f49a077ed2c218 |
|
BLAKE2b-256 | c5551e01deb8b85efd72918d4ebaa08bfaf00f6830d517f5af49f30c4ea8ab87 |
Hashes for wsgi_lineprof-0.9.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c228db5ea9e2739f550c16b24dd136c729b7e7c93a2e94a63b0fdfdbda288a |
|
MD5 | 667de7dd92f1c6b0d9f867ffa4aa1f73 |
|
BLAKE2b-256 | 937b31bb1876d8917bb8dc413f6b398e28a58dc088bfa16c0dda52b49c5bce14 |
Hashes for wsgi_lineprof-0.9.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6e79e8ad39c15072cb7b4e85b1585c5ca8dabbbcab7139131ffaba9599ad58b |
|
MD5 | a67af76959dcf12c2562b257d6d19089 |
|
BLAKE2b-256 | 7ba3db4457f4fbb75bb19304112c6939601d296274e97b47072061a9892e0aed |
Hashes for wsgi_lineprof-0.9.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 | d1716c0b1a56dd1648f0fb28d568dfeedb1259a670dba18adbdd933bac684cb3 |
|
MD5 | c15807492984302b89fea8742c107484 |
|
BLAKE2b-256 | 03a8b0da327afade9ca69facd5733bb27aa948763410b9c46f904593d6f4d40e |
Hashes for wsgi_lineprof-0.9.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1917ffd928a39fe498318c8d9e8b3c70bb9778cf7eedcefc80536a1614f69fb3 |
|
MD5 | dc48b5949cbd41c3aee9a729f32df96f |
|
BLAKE2b-256 | 629dc06208d54e9d0fc4ca130181886e0f8de0d3a8956821f997b26e6ba29419 |
Hashes for wsgi_lineprof-0.9.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4645cc5d9337ec2dd9879989bac450d7e938de548e86e260e9675d99821f8cbc |
|
MD5 | cdc16c929345673649c0a728f5a829aa |
|
BLAKE2b-256 | f07d3c0985fa65e1d089a283f28282e801fa81d0fe5d9f9dedfae0489177135b |
Hashes for wsgi_lineprof-0.9.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 501714cfef75732371395f51b28e808b2b15a9f7552257048d35334a1f30aa91 |
|
MD5 | 9b6f2cc30685119e2711990413d0d76c |
|
BLAKE2b-256 | 80dd738063473e1a6fedaeddb824b7404676d08bd92f8541f7f1783824595015 |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96be2be0a4b50388ac9fb84d293c16f002f0c90c6b243b0cab2f4b7acabdb56e |
|
MD5 | c726fbcc186eaaa752e0ee6e56976aa2 |
|
BLAKE2b-256 | 9177ce297e480639f081ae171d217ab3a58b418cbbc2def2befe5e491a0f5937 |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f47a2a566f3742439f5975d0a51e3f910e0f3962c4f788a56b4e23f294e98d9 |
|
MD5 | b3239caee5638718c02b7761090ae214 |
|
BLAKE2b-256 | 5636dba42d36eb1aeac7033ba6cce3eedc45d3b70eee66d8b4bdf91aa0aec8a7 |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7982fe4d3f61bc26dfeba067df489cccd0551a96b467a0b36f3eeb3e95f0964 |
|
MD5 | d40f27426349d2f111eeb17c8c6da35b |
|
BLAKE2b-256 | c2414f77c79b4a57a519d75708410d946930a33191224d3e8f9317ca676df5be |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5130bc1b92fc2524f435d684e24a0124fcb5289b34cd4927e3c1a49503c8dccd |
|
MD5 | 791c16d066543a64cfd1f7b7af12ac16 |
|
BLAKE2b-256 | bd78e9daaae12bb0ce75802aa48e94247342ccfcc2bcd1fac82c74397095fdc6 |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70320f2c5935fa12a9c5ed32451c827138acfe073a58c5e581e7e8fdfe113da |
|
MD5 | 6af099d2130586bb6755e25bbf12b564 |
|
BLAKE2b-256 | 8baec5617145daab4ec297b543b14709092a0e1a2534d5852edb9e2ac5c5bafa |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ada32646464c06ccd3d803b203abc0c779aeade432c318fd7a88662cc2f640a0 |
|
MD5 | 2eaff65ca477c5b13a90bfeec666938e |
|
BLAKE2b-256 | b3c47640dd538fe33372c5e7e8f032673e06050e610ebeca687e70654ad9a01f |
Hashes for wsgi_lineprof-0.9.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aef07d449f337efadfc3681a9689485619c33e2c3ac1b2e1e775bbb182aff44 |
|
MD5 | ab3d055854a8b71e8cea195b0e1bf3df |
|
BLAKE2b-256 | 8d46670b77dcfb350f677cd28ae2d49988378dae5e531c6dd7b5ab7c3faf0e0c |
Hashes for wsgi_lineprof-0.9.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 | 7eb2d13ebdc24825fb970dfd233072e39a5723f8e892b30d84ca119a66388ea4 |
|
MD5 | 40093a57d6fc31a2cf65344c08671d2c |
|
BLAKE2b-256 | 9d4fe5dd97e48240371d78fa000d79bd7cd8bd8c382236b94cb47fbfeb18c728 |