Install
pip install cprofiler-manager-wrapper
Usage
from cprofiler_manager_wrapper import Profiler
def func_to_profile():
from time import sleep
result = []
for i in range(10):
result.append(i)
sleep(1)
a = 10
return 'hello world'
with Profiler(func_about_string='func', disable=False):
func_to_profile()
По итогу будет создана, если ее не было, папка prof_folder, внутри которой будет лежат файл .prof
Для открытия .prof файла используется snakeviz - snakeviz prof_folder/<some>.prof
Metadata
Release files for cprofiler-manager-wrapper 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cprofiler_manager_wrapper-0.0.6.tar.gz | 2.5 kB | Details |
Release files / cprofiler_manager_wrapper-0.0.6.tar.gz
| Download URL | cprofiler_manager_wrapper-0.0.6.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aaf390c2c274ff2b5853e154d15b5244777da28ac11460d537be05013d2213c1
|
|
BLAKE2b-256 checksum How to use checksums |
df839e57851b8bac243170013371554b3de49cd1cf3e87bfcea30013e95d4c70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|