Python Performance Profiling for Production
Project description
Python Performance Profiling for Production
~ It's About Time ~
Jetfuel is a performance profiler that can monitor the performance of your production Python, and makes results easy to aggregate and search through.
Jetfuel is designed for Purposeful Profiling. This means that you only use Jetfuel around code of interest, instead of dumping all code performance logs and mining it later.
Useful for Profiling:
- 🌎 API performance
- 🚀 CI/CD stage / granular performance
- 💡 ML training & inference jobs
- 📀 Database queries
- 📊 Data pipelines / compute jobs
Bad performance has real world consequences, and is often a result of lack of visibility, even if you are logging it, if it's not be easy to get to, it will be ignored.
What gets measured gets managed!
Installation
pip install jetfuel-time
docker run -it -p 9000:9000 -v ${PWD}/data:/bin/jetfuel/data jetfuel/jetfuel
Demo
import jetfuel
jetfuel.init(url="http://localhost:9000")
jetfuel.demo()
Usage
# 1. Start / Stop
p = jetfuel.start("Foobar")
pass
p.stop()
# 2. Profiler
with jetfuel.Profiler("Foobar"):
pass
# 3. Function Decorator
@jetfuel.profiler("Foobar")
def ml_training():
pass
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
File details
Details for the file jetfuel-0.0.12.tar.gz
.
File metadata
- Download URL: jetfuel-0.0.12.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca99b431f5c0377b15d86ebc2cfd2ffae1e9aff047db7ed95d7b583bd7805b3 |
|
MD5 | 63919b9feefb68e948408a438602c0f6 |
|
BLAKE2b-256 | 75892b879a316da268825f8f9dcf6707ee8ceac39a5763d76583a36b8eb4fc4c |