Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Pohl's law: Nothing is so good that somebody, somewhere, will not hate it.


devel / comp.lang.python / Re: Script profiling details

SubjectAuthor
o Re: Script profiling detailsKirill Ratkin

1
Re: Script profiling details

<mailman.148.1641885785.3079.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21069&group=comp.lang.python#21069

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: kvratkin@yandex.ru (Kirill Ratkin)
Newsgroups: comp.lang.python
Subject: Re: Script profiling details
Date: Tue, 11 Jan 2022 10:22:50 +0300
Lines: 39
Message-ID: <mailman.148.1641885785.3079.python-list@python.org>
References: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
<7231641885014@mail.yandex.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"
X-Trace: news.uni-berlin.de Azt+xqQutn6Q+LSqYMASLw1/De9H4lI1R/G4iraAO5Cg==
Return-Path: <kvratkin@yandex.ru>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=yandex.ru header.i=@yandex.ru header.b=vicsfcIr;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.091
X-Spam-Evidence: '*H*': 0.82; '*S*': 0.00; 'project,': 0.03; 'url-
ip:151.101.0.223/32': 0.09; 'url-ip:151.101.128.223/32': 0.09;
'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32':
0.09; 'url:mailman': 0.15; '`python': 0.16; 'executed': 0.16;
'results,': 0.16; 'slow': 0.16; 'solved': 0.16; 'url:project':
0.16; 'url:pypi': 0.16; 'problem': 0.16; 'to:addr:python-list':
0.20; 'creates': 0.22; 'code': 0.23; 'to:name:python-
list@python.org': 0.24; 'url-ip:188.166.95.178/32': 0.25; 'url-
ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'url-
ip:188.166/16': 0.25; 'output': 0.28; 'module': 0.31; 'url-
ip:188/8': 0.31; 'but': 0.32; 'there': 0.33; 'script': 0.33;
'header:In-Reply-To:1': 0.34; 'trying': 0.35; 'track': 0.35;
'really': 0.37; 'using': 0.37; 'read': 0.38; '8bit%:14': 0.38;
'least': 0.39; 'use': 0.39; 'something': 0.40; 'try': 0.40;
'skip:o 10': 0.61; 'skip:\xc2 10': 0.62; 'url-ip:151.101.0/24':
0.62; 'url-ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24':
0.62; 'url-ip:151.101.64/24': 0.62; 'profile': 0.64; 'down': 0.64;
'your': 0.64; 'similar': 0.65; 'time.': 0.66; 'shows': 0.67;
'outside': 0.67; 'skip:/ 10': 0.69; 'analyze': 0.75; 'skip:f 20':
0.75; 'received:37': 0.78; 'html': 0.80; 'largest': 0.84;
'report,': 0.84; 'x-mailer:yamail [ http://yandex.ru ] 5.0': 0.84
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1641885770; bh=h9dWkprHIcmZcXrVnAKfEeU+1JittBSYzmBA/BMHZb8=;
h=Message-Id:References:Date:Subject:In-Reply-To:To:From;
b=vicsfcIrwqM39NsoDZWrrnrYxAFM8/WLr44hsGr3sZhJU9jlu0F8A0wJGVAksl5Dx
EUmgc0TlEsksxiZRjLEUzd+3rGh1qn1gB0e9EolZH06GRuj+Kvh/MdDcseErttYA11
dfr8gFTN/6WGJKiDTCV6YTDbxJbAQPVYkD+8wgmw=
Authentication-Results: myt5-9b032ff2a00e.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
In-Reply-To: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
X-Mailer: Yamail [ http://yandex.ru ] 5.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <7231641885014@mail.yandex.ru>
X-Mailman-Original-References: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
 by: Kirill Ratkin - Tue, 11 Jan 2022 07:22 UTC

Hi Joseph,
**
Did you try scalene profiler?
Recently I solved a similar problem and scalene really helped me.
**
It creates a well-formed HTML report, and you can optionally
enable/disable report about
a code outside your project, for example - standard library.
**
Here it is - [1]https://pypi.org/project/scalene/
**
10.01.2022, 22:28, "Joseph L. Casale" <jcasale@activenetwerx.com>:

I am trying to track down a slow script startup time. I have executed
the
script using `python -m cProfile -o profile /path/script.py` and read
through
the results, but the largest culprit only shows various built-ins.

I expected this given the implementation, but I was hoping to get some
finer details so I can track down the specific module or at least the
specific
file so I have a place to start reviewing code for optimizations.

Is there something I can use to analyze the existing profile output or
to generate
it with more feedback?

Thanks,
jlc

--
[2]https://mail.python.org/mailman/listinfo/python-list

References

Visible links
1. https://pypi.org/project/scalene/
2. https://mail.python.org/mailman/listinfo/python-list


devel / comp.lang.python / Re: Script profiling details

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor