All Projects → ymyzk → wsgi_lineprof

ymyzk / wsgi_lineprof

Licence: other
WSGI middleware for line-by-line profiling

Programming Languages

python
139335 projects - #7 most used programming language
cython
566 projects
c
50402 projects - #5 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to wsgi lineprof

Coz
Coz: Causal Profiling
Stars: ✭ 2,719 (+5685.11%)
Mutual labels:  profiler
Gecko-Profiler-Addon
(deprecated) Addon to control the Gecko Built-in Profiler
Stars: ✭ 20 (-57.45%)
Mutual labels:  profiler
plaster
Application config settings abstraction layer.
Stars: ✭ 19 (-59.57%)
Mutual labels:  wsgi
Aprof
Java memory allocation profiler
Stars: ✭ 200 (+325.53%)
Mutual labels:  profiler
Pyinstrument
🚴 Call stack profiler for Python. Shows you why your code is slow!
Stars: ✭ 3,870 (+8134.04%)
Mutual labels:  profiler
profiler
Continuous profiling based on pprof
Stars: ✭ 221 (+370.21%)
Mutual labels:  profiler
Spf4j
Simple performance framework for java
Stars: ✭ 184 (+291.49%)
Mutual labels:  profiler
live-profiler
Header only library for real time performance analysis, supports c, c++, go, java, .net
Stars: ✭ 18 (-61.7%)
Mutual labels:  profiler
flask-redis-docker
A minimal template for dockerized flask app with redis task queue
Stars: ✭ 49 (+4.26%)
Mutual labels:  wsgi
EasyProfiler
This repo, provides query profiler for .Net
Stars: ✭ 99 (+110.64%)
Mutual labels:  profiler
Liveprof
A performance monitoring system for running on live sites
Stars: ✭ 206 (+338.3%)
Mutual labels:  profiler
Router.cr
Minimum High Performance Middleware for Crystal Web Server.
Stars: ✭ 231 (+391.49%)
Mutual labels:  profiler
IYFThreading
A C++11 thread pool and profiler
Stars: ✭ 24 (-48.94%)
Mutual labels:  profiler
Cloud Ops Sandbox
Cloud Operations Sandbox is an open source tool that helps practitioners to learn Service Reliability Engineering practices from Google and apply them on their cloud services using Cloud Operations suite of tools.
Stars: ✭ 191 (+306.38%)
Mutual labels:  profiler
secure-cookie
Secure cookies and sessions for WSGI
Stars: ✭ 30 (-36.17%)
Mutual labels:  wsgi
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+4753.19%)
Mutual labels:  profiler
tensorflow profiling
Scripts with example usage of tensorflow profiler
Stars: ✭ 85 (+80.85%)
Mutual labels:  profiler
django-profile-middleware
An easy to use customizable django profiling middleware to profile and find bottlenecks in your code and custom middlewares
Stars: ✭ 36 (-23.4%)
Mutual labels:  profiler
VisualProfiler-Unity
The Visual Profiler provides a drop in solution for viewing your mixed reality Unity application's frame rate, scene complexity, and memory usage.
Stars: ✭ 120 (+155.32%)
Mutual labels:  profiler
wgpu-profiler
Simple profiler scopes for wgpu using timer queries
Stars: ✭ 45 (-4.26%)
Mutual labels:  profiler

wsgi_lineprof

PyPI version PyPI Supported Python Versions GitHub Actions (Tests) Documentation Status

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].