From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Elisp native profiler Date: Wed, 26 Sep 2012 16:20:03 -0400 Message-ID: References: <83zk4egs0w.fsf@gnu.org> <83y5jygrni.fsf@gnu.org> <83haqlgrit.fsf@gnu.org> <837grghqfe.fsf@gnu.org> <836270hq4u.fsf@gnu.org> <83zk4cfums.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348690822 10296 80.91.229.3 (26 Sep 2012 20:20:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2012 20:20:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 22:20:27 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TGy5l-0003aU-Fv for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2012 22:20:21 +0200 Original-Received: from localhost ([::1]:55091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGy5g-0004VK-AC for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2012 16:20:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGy5d-0004UN-AJ for emacs-devel@gnu.org; Wed, 26 Sep 2012 16:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGy5X-0005id-Dk for emacs-devel@gnu.org; Wed, 26 Sep 2012 16:20:13 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:37345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGy5X-0005dF-33; Wed, 26 Sep 2012 16:20:07 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q8QKK37L019054; Wed, 26 Sep 2012 16:20:04 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id D53EFB404D; Wed, 26 Sep 2012 16:20:03 -0400 (EDT) In-Reply-To: <83zk4cfums.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Sep 2012 21:31:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153603 Archived-At: > The first lines in what I got (still only the memory profiler, the > itimer code is in the works and not ready yet) look suspicious to me > in the last column: Yes, the profiler.el code that handles the percents is victim of overflows, especially with the memory profiler where the numbers are typically much higher. There's a FIXME for it in profiler.el. > Here's the same with the + signs expanded: > - call-interactively 46,352,691 2% > - scroll-up-command 43,373,729 0% > - scroll-up 43,373,729 0% > - jit-lock-function 41,648,995 0% > - jit-lock-fontify-now 41,648,995 0% > - byte-code 41,619,059 0% > - run-hook-with-args 41,619,059 0% > - font-lock-fontify-region 41,619,059 0% > - c-font-lock-fontify-region 41,619,059 0% > - font-lock-default-fontify-region 40,842,125 -1% > - font-lock-fontify-keywords-region 39,963,822 -2% > - c-font-lock-declarations 34,602,780 1% > - c-find-decl-spots 34,602,780 1% > + # 28,867,024 -2% > looking-at 2,817,588 1% > re-search-forward 1,791,738 1% > - c-forward-sws 413,348 0% > looking-at 355,304 0% > put-text-property 26,844 0% > - c-beginning-of-current-toke 150,676 0% > looking-at 150,676 0% > - c-beginning-of-macro 66,408 0% > looking-at 66,408 0% > - c-backward-sws 39,468 0% > c-beginning-of-macro 12,480 0% That looks fine (modulo the known bug). Stefan