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!
How does it work?
Jetfuel is very simple. The client simply times sections of your code, and batches / aggregates them before committing to the Jetfuel server. Updates are aggregated based on a configurable resolution (default 5s). This batching / aggregating behavior allows us to time ms/ns code without introducing much overhead.
Installation
pip install jetfuel
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
-
Start / Stop
p = jetfuel.start("Foobar") pass p.stop()
-
Profiler
with jetfuel.Profiler("Foobar"): pass
-
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.15.tar.gz
.
File metadata
- Download URL: jetfuel-0.0.15.tar.gz
- Upload date:
- Size: 485.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba4dab7c34ca3ddb82d423d5d3aa4bd836c0f9867d2c27b8c9c526a27ac103c5 |
|
MD5 | e85c15add65f2b9d80a2637f0a0b791f |
|
BLAKE2b-256 | 4ba035ba693e6ce39c503ab3504c7858657891c1c93efbb4a7ff3bcc5ab8c2dd |