Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python line profiler

Project description

Python line profiler.


$ python3
                        | import time
                        | import pylineprof
                        | def slowfib(n):
     0.001ms          1 |     a, b = 0, 1
     0.329ms         11 |     for i in range(n):
     0.115ms         10 |         a, b = b, a + b
  5030.598ms         10 |         time.sleep(.5)
     0.017ms          1 |     return a
                        | if __name__ == '__main__':
                        |     profiler = pylineprof.LineProfiler()
                        |     with profiler:
  5040.386ms          1 |         slowfib(10)


Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pylineprof, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pylineprof-0.1.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page