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: Mon, 14 Dec 2015 19:23:21 +0100 Message-ID: <20151214182321.GA15225@odonien.bevuta.com> References: <83bna0di5k.fsf@gnu.org> <20151208163208.GA1080@odonien.bevuta.com> <837fkodf3e.fsf@gnu.org> <83zixkbyoj.fsf@gnu.org> <20151213203323.GB1296@odonien.fritz.box> <20151213221825.GC1296@odonien.fritz.box> <20151214082836.GA806@odonien.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1450117461 32589 80.91.229.3 (14 Dec 2015 18:24:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Dec 2015 18:24:21 +0000 (UTC) Cc: John Wiegley , Paul Eggert , 22114@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 14 19:24:10 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 1a8Xn7-0002UN-HB for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Dec 2015 19:24:09 +0100 Original-Received: from localhost ([::1]:33223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8Xn6-0002n9-O2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Dec 2015 13:24:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8Xn3-0002my-4c for bug-gnu-emacs@gnu.org; Mon, 14 Dec 2015 13:24:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8Xn0-00016L-0V for bug-gnu-emacs@gnu.org; Mon, 14 Dec 2015 13:24:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8Xmz-00016H-UF for bug-gnu-emacs@gnu.org; Mon, 14 Dec 2015 13:24:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a8Xmz-00009d-ON for bug-gnu-emacs@gnu.org; Mon, 14 Dec 2015 13:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Dec 2015 18:24:01 +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.1450117411558 (code B ref 22114); Mon, 14 Dec 2015 18:24:01 +0000 Original-Received: (at 22114) by debbugs.gnu.org; 14 Dec 2015 18:23:31 +0000 Original-Received: from localhost ([127.0.0.1]:51842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a8XmU-00008w-Lw for submit@debbugs.gnu.org; Mon, 14 Dec 2015 13:23:30 -0500 Original-Received: from mail-wm0-f48.google.com ([74.125.82.48]:33705) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a8XmS-00008i-R9 for 22114@debbugs.gnu.org; Mon, 14 Dec 2015 13:23:29 -0500 Original-Received: by mail-wm0-f48.google.com with SMTP id n186so59487727wmn.0 for <22114@debbugs.gnu.org>; Mon, 14 Dec 2015 10:23:28 -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=IxDealjyLh64WcJdbBJhHeUP2GIEGhyvz/c+PzVUr9c=; b=lqVpDeBvl0Noe+LMdXktS9+qkHlYsSEYQthxrB3HYsLUGDctSOkmRB4R0LAbqw6OUH 7dDzrQU8psvd5rgD5Btdl2HZefDz59gNisEpUhUfdwPFvXDpirQzIvzKavK9xGNfENzU AkBq0gTRCD49dMchIL+Pks0u6pSKmghd5oyNerA1xt10xRNr+mp7UNgOS0jm7rRHcxKz 3mXMVITIrPJONqlpVQq7e73yD84aiVJ0ZyFB8wNUJFgAKxmc3wQ7WnhqqV9nR5LqCeip 2n5iDeFbrCBrDjz9NJO2nsRFfzX36Ve8jlE5upNcePy1ip5Y0aqYVsv5ejKYPawNdf3W aklg== X-Received: by 10.194.63.238 with SMTP id j14mr44133845wjs.172.1450117403193; Mon, 14 Dec 2015 10:23:23 -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 f11sm17312449wmd.7.2015.12.14.10.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Dec 2015 10:23:22 -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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:109982 Archived-At: > What are the other aspects that worry you? If you perform `M-x profiler-report` while the profiler is still running, every time you do the report, the profiler is reset. This can be easily observed by starting it, performing an intensive computation, viewing the report, then viewing it again after a short while. The second report has a lower number of CPU cycles/memory usage. This isn't really helpful. Preserving the profiler status on the other hand would be because you could then take a look at the usage throughout the stages of an interesting computation, then later stop it to freeze its status and inspect the final report. My elisp-only patch achieves the latter, the patch involving C however does the former as well. The only remaining thing I'd need to figure out is how to incorporate a reset function as profiler.el relies on accessing a log to reset the profiler...