simple_profiler
Project description
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e6254a3deb2dae93f45496671f796c76167b056cc9cfdf696c025cc713ec1bb |
|
MD5 | 560efc094da3930349763dd2253fa476 |
|
BLAKE2b-256 | 0d08b9056d9d182b81a6416c5e4f61337c28cd746679be6a2ab21990b120fc50 |