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.8.0-cp37-cp37m-win_amd64.macosx_10_14_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 | 985e4cc2e1321f4c2a306d78f402a5c4f10b9071dec905ea45ff936012ea111a |
|
MD5 | ab7f0aefb721eba554d8aacc450f4863 |
|
BLAKE2b-256 | aadc78484b79758994621a827e0ade9e6f3429eb71c4404fd206000daa915958 |
Hashes for wsgi_lineprof-0.8.0-cp37-cp37m-win32.macosx_10_14_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 | 64ca58a89cbc97890ad957620342a4898c06d8da286a7a34d0a89e5a44ba82a7 |
|
MD5 | b57f1b1c979db8a946d1759e703af98b |
|
BLAKE2b-256 | 2440088c6b0d95981aec683fc73ec9eccb7df7cb4c6685bd223488aaf159bdbe |
Hashes for wsgi_lineprof-0.8.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d243a7186984ac55eb41e6ba567be4585ba913ff5a640a6cbce9a5b1086c49 |
|
MD5 | ed78754306e51eb332a750af68d6b098 |
|
BLAKE2b-256 | 5301d1a7c27757f22e174aeccaf2e8bf595403a29de00ea8e47ce9066076e8d0 |
Hashes for wsgi_lineprof-0.8.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf3e67b108ad4b60a46c0a866df0416addcd53d1826b9b79dd2a2565cb57058 |
|
MD5 | 4a0827ab5d9dc55ede92dd82109a7d15 |
|
BLAKE2b-256 | 006a271dd3627ea0de20ffd3478e5f099aa1555972e462c399516c5ad3d36ba9 |
Hashes for wsgi_lineprof-0.8.0-cp37-cp37m-macosx_10_14_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 | 115ecb71f026f03a05b34df733cdbce94bd1426438ca4faa4855e2ff466edb28 |
|
MD5 | ab838b0493f643b4276aeb97becd55f5 |
|
BLAKE2b-256 | 1e71356861483ad5e5392f1821cda71bd2f12ba0df6d3e1e39cf548707007aee |
Hashes for wsgi_lineprof-0.8.0-cp36-cp36m-win_amd64.macosx_10_14_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 | 317f87e35a7f8300f9812776188d7019fa51016552294d639ca89a5691b711ba |
|
MD5 | 703da776bcf39053f02d008bd480f796 |
|
BLAKE2b-256 | d4dfa6b1723f247077398ce10ad63108fb0cfc6637c8371a55079cc86e366210 |
Hashes for wsgi_lineprof-0.8.0-cp36-cp36m-win32.macosx_10_14_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 | a0abc893d7badeb35de18b065bf38e64c2f41523e65d6ab935bb48560cf6852b |
|
MD5 | 5e11e36a023cc6c292f093b7bcbccb73 |
|
BLAKE2b-256 | 63a83fafce79136587043c4e3b483f9b2fd1771afadbe202906aa4cc6c8d18fc |
Hashes for wsgi_lineprof-0.8.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ebd45d098d5e910c18897f7232a42b512bbdd3ed8911958576169cabe4ca60 |
|
MD5 | 05976462c2078fcb8429ac138c4c0b17 |
|
BLAKE2b-256 | 1b5068e4498db7582431d22f8c78085bdda2453a17adad651e329fae78d81024 |
Hashes for wsgi_lineprof-0.8.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7f4e279e39454d810e8831e0f56a6b41eada8a6a360ab4558700b7e464ddb89 |
|
MD5 | 75991732e6fc2509b3f88d4e5d12f5b2 |
|
BLAKE2b-256 | 7a55dd08b8576d0e80894c8351e240494b50a6fa7f8b0b0af35b3dfacc362820 |
Hashes for wsgi_lineprof-0.8.0-cp36-cp36m-macosx_10_13_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 | 301203eca3b964b980da8b2f3656741a24be99a179fc4409658145a99f5ded2a |
|
MD5 | f8ab82958954a7245b6e0b24d3df5f18 |
|
BLAKE2b-256 | 4bcc59104bb591d13555fd6bca5347b80cd6778331dbf70f5aa4baa7c1b2e3d2 |
Hashes for wsgi_lineprof-0.8.0-cp35-cp35m-win_amd64.macosx_10_14_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 | d6ee44fe7c2de70b6daea1a21e24a9f449279317c337e0acf599e37e699b854e |
|
MD5 | 27267ee4b6bc39172c22bd9f5d0605d3 |
|
BLAKE2b-256 | ebe82bfa8764bbe8d79e666ead69cde3a01aa6f7795390dea046c265296ffda7 |
Hashes for wsgi_lineprof-0.8.0-cp35-cp35m-win32.macosx_10_14_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 | 7c07c12ebb139d651ecda99f2db4e1499e04d99b94279974297062fe89dbe82e |
|
MD5 | 07fa2487d3e6a254049e30035eca2aae |
|
BLAKE2b-256 | 47cc25a9d0259a979a72699626898a0ad341c81e40af9f1259537f8abc0a7bee |
Hashes for wsgi_lineprof-0.8.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583028388eb58d2acc0ce2c86537bf674970d618caf266341e8d13c56c66f4e7 |
|
MD5 | 8de933c7bb8bff79db7c43ad5e258056 |
|
BLAKE2b-256 | 2f3f82a4c9fb17399216634c1fbe058fdb5d6aa5638b26589cd9d0702e4713d8 |
Hashes for wsgi_lineprof-0.8.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f7b1f0a5934ed2dfe0865f701cad63ee215053781617e8258a02284b9e4285 |
|
MD5 | 770e2280a58caa723b80208e817c40d3 |
|
BLAKE2b-256 | f917750678bb945ab8e9b493878be2cdf5d38d74ef4d7ce296eacd94c7353cd9 |
Hashes for wsgi_lineprof-0.8.0-cp35-cp35m-macosx_10_13_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 | 780c06d2f56d19c289bc2cfab325f154672adf6a060edf69bf9092d982699c84 |
|
MD5 | 39c9b31597e7b017985fe6cda2dea3e2 |
|
BLAKE2b-256 | 03e911be71b25565f668630666ec5b43f21cabf3a384553cdbeee29f159faebe |
Hashes for wsgi_lineprof-0.8.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 589761420f1580d249cefeb95adb66c6d8fb9049a9ba49301ce3eaeb79327547 |
|
MD5 | 1fde33b8d8109802f35b2d42e93cc40e |
|
BLAKE2b-256 | fb90cf77d6f2e4326cce9b4f466e51d39830e652cbf56411a2c9b3d443939aee |
Hashes for wsgi_lineprof-0.8.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d22d8f6659e251564e0321b70b45af5b49d6409f9cae3391c85ac4386be7a1d4 |
|
MD5 | 8801cec2f699c4582f687c744b5377ef |
|
BLAKE2b-256 | 6ceb8c2162ba70092b5a1b236309a4ce18308ba9e9d1d323a0bd291e492224ab |
Hashes for wsgi_lineprof-0.8.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68ad28732325be6cd7d8b4c6e5f2912155b7bb200f70e556da00401a8e435aa |
|
MD5 | c89d9d526e9b1c97a8dd27757d6bb16a |
|
BLAKE2b-256 | 64f6328f95b5eb9795b887995ddfcf82bd308f29d13097c155b87a57148798c8 |
Hashes for wsgi_lineprof-0.8.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a614f39b31d050e740a6baa7cb33956b056c2947bfd2529654687ce773d79730 |
|
MD5 | bf45b6f57fe8009bef46c431a3540155 |
|
BLAKE2b-256 | a89a8ae4fb2557206de40a2e15894c85eba0b4a805509b6b2e292ddccdd1f47f |
Hashes for wsgi_lineprof-0.8.0-cp27-cp27m-macosx_10_14_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 | 86061d926bdaf2047e7f8497eef302c280bafb771a10208d604f912910c4f52b |
|
MD5 | f649e9d8b2408a8c7c1e8087adb04f8a |
|
BLAKE2b-256 | 5c91843cffc29512bd15e6da21ece54bc1142db329b4f3dd1e89f47410824945 |