Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

To be awake is to be alive. -- Henry David Thoreau, in "Walden"


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

SubjectAuthor
* Script profiling detailsJoseph L. Casale
`- Re: Script profiling detailsDennis Lee Bieber

1
Script profiling details

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: jcas...@activenetwerx.com (Joseph L. Casale)
Newsgroups: comp.lang.python
Subject: Script profiling details
Date: Mon, 10 Jan 2022 18:43:20 +0000
Lines: 16
Message-ID: <mailman.143.1641842226.3079.python-list@python.org>
References: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 4jBUXDP4sRBYCqMIZWPW+g9XMlFA4tojOuav9FoKUIyw==
Return-Path: <jcasale@activenetwerx.com>
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: UNSURE 0.302
X-Spam-Level: ***
X-Spam-Evidence: '*H*': 0.42; '*S*': 0.02; '`python': 0.16;
'executed': 0.16; 'results,': 0.16; 'slow': 0.16; 'to:addr:python-
list': 0.20; 'code': 0.23; 'to:name:python-list@python.org': 0.24;
'output': 0.28; 'module': 0.31; 'but': 0.32; 'there': 0.33;
'script': 0.33; 'trying': 0.35; 'track': 0.35;
'header:Received:8': 0.36; '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;
'received:userid': 0.66; 'time.': 0.66; 'shows': 0.67; 'skip:/
10': 0.69; 'analyze': 0.75; 'largest': 0.84; 'received:3': 0.84;
'received:70': 0.84
X-Authority-Analysis: v=2.4 cv=S9vKfagP c=1 sm=1 tr=0 ts=61dc7e4b
a=Ohdvupop0YJg9ecAbOqnCw==:117 a=Ohdvupop0YJg9ecAbOqnCw==:17
a=xqWC_Br6kY4A:10 a=AgG5ixNBvo4A:10 a=kj9zAlcOel0A:10 a=DghFqjY3_ZEA:10
a=7nbQbwIQrZfiu9idBiQA:9 a=CjuIK1q_8ugA:10
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
gateway.activenetwerx.com
X-Spam-Level:
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
autolearn=ham autolearn_force=no version=3.4.4
Thread-Topic: Script profiling details
Thread-Index: AdgGUPLhRgTIwDMxRPuDLf81U5Bm4g==
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.18.0.201]
X-CMAE-Envelope: MS4xfC2N5DjAMqyBZZVSi2fJjjCOxcfQosCgmxhxRtGbvLvxA1TV5z3hrW8lfTEiRhBT4Ck4GT/1wBHgNqZ6EXB13nKWerXGF7yXv3zHlAPCkiEjWhN0St+T
924xdaQ708cvmQjg6hDww1TSGssBWNU+BsSNVPwmgfsrZZ+//wSf8Rsm3LPBfRjKREGibjuRGdyxFvQEb7jIBqGyai7lEvfcSs8=
X-Mailman-Approved-At: Mon, 10 Jan 2022 14:17:05 -0500
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: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com>
 by: Joseph L. Casale - Mon, 10 Jan 2022 18:43 UTC

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

Re: Script profiling details

<3d8ptg9qu8qnttcrmoljuubqogvh5gakmg@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 10 Jan 2022 15:15:00 -0600
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Script profiling details
Date: Mon, 10 Jan 2022 16:15:01 -0500
Organization: IISS Elusive Unicorn
Message-ID: <3d8ptg9qu8qnttcrmoljuubqogvh5gakmg@4ax.com>
References: <62b6034aed664df6a713ef7818ea6e4e@activenetwerx.com> <mailman.143.1641842226.3079.python-list@python.org>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 15
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-lTobkKuoLwAQRcvSkw/5PV8TEe2G06GEbVCWnwBqK3B4+z+dHGcHYqhJ8/9m9cEbArXhbypv6yCohY3!b/tslZenBQb2dcJd9BBD4MBHoTqBVdu2t3bMTe9LwFEJiHPkXkGQz6LPmvDAmIHNhnesvtSF
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1717
 by: Dennis Lee Bieber - Mon, 10 Jan 2022 21:15 UTC

On Mon, 10 Jan 2022 18:43:20 +0000, "Joseph L. Casale"
<jcasale@activenetwerx.com> declaimed the following:

>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.
>

Are you accounting for how long it takes to start the Python
interpreter itself?

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor