simple_profiler
Project description
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
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
Close
Hashes for cprofiler_manager_wrapper-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec2eaedc85756486591bb6f53da2ab60ede71c742ca71e8ebc93222fc7771ad9 |
|
MD5 | cf03be50c5217c018ec1bcc9c56f3114 |
|
BLAKE2b-256 | ec37eb4a5c9a33d3a6dca01ea046e9969531ef04bbc8ec5191e2979810b730ad |