KXY, a package for profiling remotely
Project description
kxy-codew
kxy-codew is a lightweight Python profiling tool that makes it easy to measure the performance of your entire application or specific functions. Results are centralized on https://kxy.codew.es, where you get a detailed performance report via a sharable link.
Features
- Profile your entire Python application with a single call.
- Decorator to profile any function on every call.
- Get performance reports with one-click access.
- Simple to integrate with your code.
Installation
pip install kxy-codew
Usage
- Sign up at https://kxy.codew.es, create an App, and then and get your API token.
Profile the entire application
from src.kxy_codew import set_token, performance
set_token("NcPi_dCJ78VjxmZ4M..............")
performance.init_kxy()
# Your application code here
When the program ends, it will print a link to the profiling report like:
Profile report available at: https://7176.codew.es/profile_g2dot/3884a9eb-c74c-4aac-8443-4536629d82c4
Profile a specific function
from src.kxy_codew import set_token, performance
set_token("NcPi_dCJ78VjxmZ4M..............")
@performance.profile
def busy_wait(duration):
x = 0
for i in range(duration * 10000000):
x = duration * 100 - 20 / 12
x += 1
return x
busy_wait(10)
busy_wait(30)
busy_wait(100)
After every execution of the decorated function, a detailed profiling record is added to the panel on https://kxy.codew.es
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kxy_codew-0.1.51.tar.gz.
File metadata
- Download URL: kxy_codew-0.1.51.tar.gz
- Upload date:
- Size: 74.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c44727f11a84fb98072191480ed217c9a3faba1b386dfc44e854a5976bf9d0
|
|
| MD5 |
d7d779e9dc2c2b910ddc7c59b6092b1e
|
|
| BLAKE2b-256 |
1ccf92eee08b899ec5c5d08599ce69e651762976592e3333f986bc4bce317873
|
File details
Details for the file kxy_codew-0.1.51-py3-none-any.whl.
File metadata
- Download URL: kxy_codew-0.1.51-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2c5150401a5dc3fbfd4f5296b75aee3651fb5fb734d204a3761781fe94744a
|
|
| MD5 |
877fb69a8b454847f66448b8e30ddb47
|
|
| BLAKE2b-256 |
6299ee612258f7fc61c433fb365f1398813f0bde8d7a0a9627eb0491dad40170
|