From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Elisp native profiler Date: Mon, 01 Oct 2012 09:51:25 -0700 Organization: UCLA Computer Science Department Message-ID: <5069CA0D.1080801@cs.ucla.edu> References: <83zk4egs0w.fsf@gnu.org> <83y5jygrni.fsf@gnu.org> <50620443.8050301@cs.ucla.edu> <20120926151625.229ef3cc9caf90e5098b18ef@cx4a.org> <20121001014217.03ac31a69b9b43516cb0dd61@cx4a.org> <50689C1D.8080005@cs.ucla.edu> <5068AEE2.4080004@cs.ucla.edu> <83a9w6cwbf.fsf@gnu.org> <5069AEBB.5050709@cs.ucla.edu> <83lifqb49m.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349110794 19620 80.91.229.3 (1 Oct 2012 16:59:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 16:59:54 +0000 (UTC) Cc: tomo@cx4a.org, Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 18:59:55 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 1TIjLO-0005m7-7t for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 18:59:46 +0200 Original-Received: from localhost ([::1]:52081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIjDT-0004ws-FM for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 12:51:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIjDR-0004wc-3N for emacs-devel@gnu.org; Mon, 01 Oct 2012 12:51:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIjDL-0001Gh-9s for emacs-devel@gnu.org; Mon, 01 Oct 2012 12:51:33 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:52559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIjDI-0001Ff-Of; Mon, 01 Oct 2012 12:51:24 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id D71F5A60004; Mon, 1 Oct 2012 09:51:23 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1KGkeMPv3PeP; Mon, 1 Oct 2012 09:51:23 -0700 (PDT) Original-Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 482C6A60003; Mon, 1 Oct 2012 09:51:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:153859 Archived-At: On 10/01/2012 09:34 AM, Stefan Monnier wrote: > That's assuming that my 1ms sampling timer is really run 1000 times per > (CPU) second. It's true that the actual samples might come in at some slower rate, since timers are not guaranteed to have exactly the interval asked for. But as long as the rate is uniform pretty much any interval will do, as not as it's not outrageously different from what's requested. My guess is that it's too much trouble to add code to test for the actual sampling rate and to try to account for the sampling-rate error more precisely. At any rate (no pun intended) I don't know of any other CPU-time profiler that tries to get that fancy, not that I'm an expert....