From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Elisp native profiler Date: Sun, 30 Sep 2012 09:58:26 +0200 Message-ID: <83haqgdjrx.fsf@gnu.org> References: <83zk4egs0w.fsf@gnu.org> <83y5jygrni.fsf@gnu.org> <50620443.8050301@cs.ucla.edu> <20120926151625.229ef3cc9caf90e5098b18ef@cx4a.org> <20120928181443.cc7481a56c7b52146605f0a7@cx4a.org> <834nmih0oc.fsf@gnu.org> <5067F6B2.4010703@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1348991917 713 80.91.229.3 (30 Sep 2012 07:58:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 07:58:37 +0000 (UTC) Cc: tomo@cx4a.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 30 09:58:42 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 1TIEQC-0002ew-9v for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 09:58:40 +0200 Original-Received: from localhost ([::1]:41725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIEQ6-0007X3-UL for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 03:58:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIEQ3-0007Wx-S1 for emacs-devel@gnu.org; Sun, 30 Sep 2012 03:58:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIEQ2-0005ov-Te for emacs-devel@gnu.org; Sun, 30 Sep 2012 03:58:31 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:36649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIEQ2-0005or-Li for emacs-devel@gnu.org; Sun, 30 Sep 2012 03:58:30 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MB500000KNVKI00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sun, 30 Sep 2012 09:58:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MB5000CHKTAE880@a-mtaout23.012.net.il>; Sun, 30 Sep 2012 09:58:22 +0200 (IST) In-reply-to: <5067F6B2.4010703@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 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:153737 Archived-At: > Date: Sun, 30 Sep 2012 00:37:22 -0700 > From: Paul Eggert > CC: Tomohiro Matsuyama , emacs-devel@gnu.org > > On 09/28/2012 04:00 AM, Eli Zaretskii wrote: > > What interval is used by the profiling code in a C program compiled > > with -pg? > > It depends on the platform. Historically it was 1/60th of > a second, because that's how often the clock interrupt was. > Nowadays 10 ms is common -- that's what GNU/Linux > uses, at least my copy does. So perhaps we should use 10 ms as the default sampling period. Btw, does profiler.c live in peace with Emacs configured with "--enable-profiling"? They both use SIGPROF, AFAIK. Perhaps profiler.c features should be disabled when Emacs is profiling itself.