Skip to main content

No project description provided

Project description


Tool to profile your code in python


pip install simpleprofiler

Logging Level

Defaultly simpleprofiler use INFO as logging level



from simpleprofiler import get_profile

import logging
_logger = logging.getLogger(__name__)

def try_func(bool, arr):
    if bool:
        for item in arr:
        for item in arr:

try_func(True, ["try" * 10])

On Console:

try_func >  calls     ms
try_func >  ------------------------------------ /DIRECTORY_TO/, 8

try_func > 1         0.0       @get_profile
try_func >                     def try_func(bool, arr):
try_func > 1         0.0           if bool:
try_func > 2         0.0               for item in arr:
try_func > 1         0.21        
try_func >                         else:
try_func >                             for item in arr:
try_func >                       

try_func > Total:
try_func > 1         0.21  

Project details

Download files

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

Source Distribution

simpleprofiler-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page