Metadata-Version: 2.1
Name: zprofile
Version: 1.0.11
Summary: Statistical CPU and wall-clock profilers for Python
Home-page: https://github.com/timpalpant/cloud-profiler-python
Author: Timothy Palpant
License: Apache License, Version 2.0
Description: # zprofile
        
        Statistical (sampling) CPU and wall-clock profilers for Python, derived from [google-cloud-profiler](https://github.com/GoogleCloudPlatform/cloud-profiler-python).
        
        ## Installation & usage
        
        1.  Install the profiler package using PyPI:
        
            ```shell
            pip3 install zprofile
            ```
        
        2.  Enable the profiler in your application:
        
            ```python
            from zprofile.cpu_profiler import CPUProfiler
        
            p = CPUProfiler()
            pprof = p.profile(30)  # seconds
        
            with open("profile.pprof", "wb") as f:
              f.write(pprof)
            ```
        
        3.  View the profile with the [`pprof` tool](https://github.com/google/pprof):
        
            ```
            $ go tool pprof -http localhost:8080 profile.pprof
            ```
        
Keywords: cloud profiler
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
