From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#22114: 24.5; [PATCH] Allow profiler.el to display reports after stopping Date: Tue, 08 Dec 2015 10:02:17 -0800 Message-ID: References: <83bna0di5k.fsf@gnu.org> <20151208163208.GA1080@odonien.bevuta.com> <837fkodf3e.fsf@gnu.org> <20151208175654.GD1080@odonien.bevuta.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449597808 5226 80.91.229.3 (8 Dec 2015 18:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 18:03:28 +0000 (UTC) Cc: John Wiegley , 22114@debbugs.gnu.org To: Vasilij Schneidermann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 19:03:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a6Mbb-0000Pv-AP for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 19:03:15 +0100 Original-Received: from localhost ([::1]:32877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Mba-0006Qy-A3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 13:03:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MbS-0006Qg-5G for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 13:03:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6MbO-0000bx-NC for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 13:03:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MbO-0000bm-KW for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 13:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a6MbO-00012R-5z for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 13:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2015 18:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22114 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 22114-submit@debbugs.gnu.org id=B22114.14495977453941 (code B ref 22114); Tue, 08 Dec 2015 18:03:02 +0000 Original-Received: (at 22114) by debbugs.gnu.org; 8 Dec 2015 18:02:25 +0000 Original-Received: from localhost ([127.0.0.1]:43489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Mam-00011U-BZ for submit@debbugs.gnu.org; Tue, 08 Dec 2015 13:02:24 -0500 Original-Received: from mail-pf0-f179.google.com ([209.85.192.179]:35052) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Maj-00011E-FD for 22114@debbugs.gnu.org; Tue, 08 Dec 2015 13:02:22 -0500 Original-Received: by pfu207 with SMTP id 207so15611127pfu.2 for <22114@debbugs.gnu.org>; Tue, 08 Dec 2015 10:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type; bh=vWTsNBGvjb/pfZ9hfq5MASnkr8FJNT2g9R3MCjsUjD4=; b=z0fMXDFmrnDvHKOanOL5VafBupqdmXgwIYomXWQnIWUqQnNnEht7atGk1c/t5q8w4C ICItRg/oSGPIp/n7fYBJ6eZWv+rShhTw40pRIHZ+qkJy3DeEFJUxVe+zkA6HtAJldoq6 x+a19WaR0eXpm+puJKqQ0MyfHRZmgDncWUreoh0vg5APrnnNl6DZYrPuuhkBGVA6oOWr r3XESK0hJ9tCcmWybIxwu8beViH5ywQy58xQncgjP+FnM9v4lEqbchiTek5M2/Tug9/b FeA+wm18AdPXIx2kcL5t3bQQ+TeW7pr+ThR24/+NWDO7zzdeM5JX0+0nwg4R2iV99mek aFLA== X-Received: by 10.98.0.73 with SMTP id 70mr6794797pfa.4.1449597740659; Tue, 08 Dec 2015 10:02:20 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id c79sm6117725pfj.71.2015.12.08.10.02.19 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 08 Dec 2015 10:02:20 -0800 (PST) Original-Received: by Vulcan.local (Postfix, from userid 501) id 4DD0710FCF885; Tue, 8 Dec 2015 10:02:19 -0800 (PST) In-Reply-To: <20151208175654.GD1080@odonien.bevuta.com> (Vasilij Schneidermann's message of "Tue, 8 Dec 2015 18:56:54 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109778 Archived-At: >>>>> Vasilij Schneidermann writes: > This would be a nice addition to have, but is currently not possible (and > not what I'm after with this patch). The very act of viewing the results in > progress (which requires accessing the profiler log) creates a log *and* > resets the profiler. If you access the log again while the profiler is still > running, you'll get a new log starting from that point of time and spanning > until access time. This can be repeated ad nauseam and is IMO rather > unhelpful. I see. > What can be fixed though is the behaviour of profiler report with a stopped > profiler. You are still limited to accessing the profiler log once, but if > you make profiler.el cache it (be it by storing it in a variable before > stopping or by opening an already existing profiler report buffer), the user > won't be aware of this limitation, because no matter how often they display > the report, it will stay exactly the same and not throw an error. You just want the profiler report display to be idempotent? Wouldn't this mean necessitating another command call in order to reset results? Some people may be used to the fact that a report resets the results. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2