From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#22114: 24.5; [PATCH] Allow profiler.el to display reports after stopping Date: Tue, 8 Dec 2015 18:56:54 +0100 Message-ID: <20151208175654.GD1080@odonien.bevuta.com> References: <83bna0di5k.fsf@gnu.org> <20151208163208.GA1080@odonien.bevuta.com> <837fkodf3e.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1449597447 31356 80.91.229.3 (8 Dec 2015 17:57:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 17:57:27 +0000 (UTC) Cc: 22114@debbugs.gnu.org To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 18:57:13 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 1a6MVl-0005nf-3N for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 18:57:13 +0100 Original-Received: from localhost ([::1]:32859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MVk-0004Z3-9B for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 12:57:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MVd-0004Yd-S8 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:57:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6MVa-0005k6-MM for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:57:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MVa-0005jy-JI for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a6MVa-0000rs-D8 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2015 17:57: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.14495974183326 (code B ref 22114); Tue, 08 Dec 2015 17:57:02 +0000 Original-Received: (at 22114) by debbugs.gnu.org; 8 Dec 2015 17:56:58 +0000 Original-Received: from localhost ([127.0.0.1]:43485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6MVW-0000rY-3H for submit@debbugs.gnu.org; Tue, 08 Dec 2015 12:56:58 -0500 Original-Received: from mail-wm0-f46.google.com ([74.125.82.46]:37474) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6MVU-0000rQ-5W for 22114@debbugs.gnu.org; Tue, 08 Dec 2015 12:56:56 -0500 Original-Received: by wmww144 with SMTP id w144so39943755wmw.0 for <22114@debbugs.gnu.org>; Tue, 08 Dec 2015 09:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=cZPxm6kldAXr9YppkLo3GPJSUHCsyBqmqDbr7S4QFEg=; b=Y6nNiInQMW6xkFgP2hUyPFx7zbS6CCFo6Ybj8XDoulDRJhswslj+IT0KUPnhlRqyiK YfxcG3d1HuN8hudPbQR5+iEikV+qfSlAGxcwlfTVUKzQAJm8ohvT5tJ/tX0T9b1R5Nc7 DshPyUheV443VC7+/yDrsZ0CSZhFRBkyzFX3SLY1H1tq7dB67pb0IdW/cUwMx+Rypkgf RTw1BuNiPJHn48ELLdrrSMa71mKC5TAqTBYpDd6XnK/fdFBNWHcJvpkS+2eZRYGJF/4v 5qAIz0Sv/t46M8o5A7PB7kW7vVdUF1CX3WKHoUVsUrUI+eh4CrexRRx+cyWxlm8ENjmq ktMA== X-Received: by 10.28.228.138 with SMTP id b132mr31095549wmh.46.1449597415498; Tue, 08 Dec 2015 09:56:55 -0800 (PST) Original-Received: from localhost (port-92-204-65-240.dynamic.qsc.de. [92.204.65.240]) by smtp.gmail.com with ESMTPSA id t3sm3623394wjz.11.2015.12.08.09.56.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2015 09:56:55 -0800 (PST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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:109777 Archived-At: > I think the OP wants to: > > 1. Start a profile > 2. View the "results in progress" > 3. Allow it to continue execution > 4. View the "results at the end" 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. 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.