Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Elegance and truth are inversely related. -- Becker's Razor


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

SubjectAuthor
o Re: Script profiling detailsBarry

1
Re: Script profiling details

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: Script profiling details
Date: Mon, 10 Jan 2022 22:35:54 +0000
Lines: 34
Message-ID: <mailman.145.1641854164.3079.python-list@python.org>
References: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
<CDA36A7A-A8EF-41DE-BEE7-91598E0CE39F@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de xR0Q39tsUol6htsP68TepQLDiWggjNJy6JuPpKTMJAYQ==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: Python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'joseph': 0.05; 'cc:addr
:python-list': 0.09; 'from:addr:barry': 0.09; 'received:217.70':
0.09; 'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'cc:no real name:2**0': 0.14; 'url:mailman': 0.15; '2022,': 0.16;
'`python': 0.16; 'analyses': 0.16; 'barry': 0.16; 'executed':
0.16; 'from:addr:barrys-emacs.org': 0.16; 'message-id:@barrys-
emacs.org': 0.16; 'results,': 0.16; 'slow': 0.16; 'wrote:': 0.16;
'cc:addr:python.org': 0.20; 'code': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 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; 'thanks,': 0.36; 'using': 0.37;
'file': 0.38; 'read': 0.38; 'least': 0.39; 'use': 0.39;
'something': 0.40; 'skip:o 10': 0.61; 'profile': 0.64; 'down':
0.64; 'produce': 0.65; 'look': 0.65; 'time.': 0.66; 'shows': 0.67;
'received:217': 0.67; 'skip:/ 10': 0.69; 'types,': 0.69;
'analyze': 0.75; 'reply': 0.77; 'largest': 0.84
In-Reply-To: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
X-Mailer: iPad Mail (19C56)
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: <CDA36A7A-A8EF-41DE-BEE7-91598E0CE39F@barrys-emacs.org>
X-Mailman-Original-References: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
 by: Barry - Mon, 10 Jan 2022 22:35 UTC

S

> On 10 Jan 2022, at 19:29, Joseph L. Casale <jcasale@activenetwerx.com> wrote:
>
> 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?

Read the profile analyses docs/code and report using options that show you which callers are using the builtins.

If you need details reply and I will look at the scripts I use that produce a number of report types,

Barry
>
> Thanks,
> jlc
> --
> https://mail.python.org/mailman/listinfo/python-list
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor