From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55103 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: two agent nits Date: Fri, 05 Dec 2003 05:13:15 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070597639 14950 80.91.224.253 (5 Dec 2003 04:13:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2003 04:13:59 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M3643@lists.math.uh.edu Fri Dec 05 05:13:55 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AS7Ln-0003x1-00 for ; Fri, 05 Dec 2003 05:13:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AS7La-0001n9-00; Thu, 04 Dec 2003 22:13:42 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AS7LS-0001n3-00 for ding@lists.math.uh.edu; Thu, 04 Dec 2003 22:13:34 -0600 Original-Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by justine.libertine.org (Postfix) with ESMTP id 5E82B3A003B for ; Thu, 4 Dec 2003 22:13:32 -0600 (CST) Original-Received: from latte (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.10/8.12.10) with ESMTP id hB54DUAU011071 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Fri, 5 Dec 2003 05:13:31 +0100 Original-To: Harry Putnam Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:031205:reader@newsguy.com:25b210ad56ae7282 X-Hashcash: 0:031205:reader@newsguy.com:25b210ad56ae7282 X-Payment: hashcash 1.2 0:031205:ding@gnus.org:ccf48df9027ac944 X-Hashcash: 0:031205:ding@gnus.org:ccf48df9027ac944 In-Reply-To: (Harry Putnam's message of "Thu, 04 Dec 2003 21:54:29 -0600") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55103 Harry Putnam writes: > This looks pretty wild... > >> gnus-point-at-eol 500918 3.1774099999 6.343...e-06 > > Simon, what is the syntax for running that profile? I couldn't get > even a remote clue from C-h f elp. And was discouraged to > find that an `i' (index) search on `elp' in emacs info pages just > brings up lots of hits help `help'. > > `s' search gives no hits on `[^h]elp-' See the Troubleshooting section of the Gnus manual: A fancier approach is to use the elisp profiler, ELP. The profiler is (or should be) fully documented elsewhere, but to get you started there are a few steps that need to be followed. First, instrument the part of Gnus you are interested in for profiling, e.g. `M-x elp-instrument-package RET gnus' or `M-x elp-instrument-package RET message'. Then perform the operation that is slow and press `M-x elp-results'. You will then see which operations that takes time, and can debug them further. If the entire operation takes much longer than the time spent in the slowest function in the profiler output, you probably profiled the wrong part of Gnus. To reset profiling statistics, use `M-x elp-reset-all'. `M-x elp-restore-all' is supposed to remove profiling, but given the complexities and dynamic code generation in Gnus, it might not always work perfectly.