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:44:41 +0100 Message-ID: <20151208174441.GC1080@odonien.bevuta.com> References: <83bna0di5k.fsf@gnu.org> <20151208164049.GB1080@odonien.bevuta.com> <834mfsdend.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 1449596724 19828 80.91.229.3 (8 Dec 2015 17:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 17:45:24 +0000 (UTC) Cc: 22114@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 18:45: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 1a6MK7-00017e-OY for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 18:45:11 +0100 Original-Received: from localhost ([::1]:32831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MK7-00017g-9E for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 12:45:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MK2-000164-OE for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6MJz-0006jZ-AV for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6MJz-0006jR-7p for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a6MJy-0000Zq-Tt for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 12:45:03 -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:45: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.14495966842179 (code B ref 22114); Tue, 08 Dec 2015 17:45:02 +0000 Original-Received: (at 22114) by debbugs.gnu.org; 8 Dec 2015 17:44:44 +0000 Original-Received: from localhost ([127.0.0.1]:43476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6MJg-0000Z3-AP for submit@debbugs.gnu.org; Tue, 08 Dec 2015 12:44:44 -0500 Original-Received: from mail-wm0-f46.google.com ([74.125.82.46]:35496) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6MJf-0000Yu-2f for 22114@debbugs.gnu.org; Tue, 08 Dec 2015 12:44:43 -0500 Original-Received: by wmuu63 with SMTP id u63so190563964wmu.0 for <22114@debbugs.gnu.org>; Tue, 08 Dec 2015 09:44:42 -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=5uqeDMJnOfAapC4vIqnEujG5TZNz+CGbyim4wykP2RY=; b=nCtnqAuWKeuZXtQz0blLPydxd/4LeO4KbfZKNwZW+Ilr50gwOh88zKfAu1BVvyxJpy 71A7gQ+TamHVU2/MG5tu8DoWY79EC3snEzbHx5D81iDoNmK8L9rCMpdTtCAwUUs4yFIS 1+zvTeSGo/PEmqeGH3DPC7EgiI4mqRhx4UuKTQ6Rkva/RpK6RQxAB9ZJC05uYsOT+hl9 jZ/q9QqadHjrcF+agZC+R1YGTfA5xg9sFAefl9ZTSViLyXrMs44IfWGCJYx1ShFfhYpa 8kJEWUr9cq2VDD6VWP7H9Rtmpq0kc/4n1VWc/1bFoo+t1l6KuGx1oThzDrM+6UVfpata nGpw== X-Received: by 10.194.179.162 with SMTP id dh2mr858413wjc.17.1449596682461; Tue, 08 Dec 2015 09:44:42 -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 c4sm3919218wjs.36.2015.12.08.09.44.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2015 09:44:42 -0800 (PST) Content-Disposition: inline In-Reply-To: <834mfsdend.fsf@gnu.org> 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:109775 Archived-At: > Sorry, I don't understand this comment. If the report can be produced > when the profiler is stopped, then the limitation is lifted, right? This was specifically targeted at an earlier comment of yours: > I don't really understand why profiler.el insists on having the > profiler running for providing the profile. My theory as for the code was written this way is that its author noticed that accessing the log without getting an error is only possible while the profiler is still running, so he implemented exactly that. That's why I've discarded my earlier version of the patch (which pretty much looks like what you've proposed) and replaced it with something more elaborate working around this problem.