From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: The status of statprof Date: Tue, 17 Sep 2013 20:03:00 +0200 Message-ID: <87pps7tjfv.fsf@pobox.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379441028 9988 80.91.229.3 (17 Sep 2013 18:03:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 18:03:48 +0000 (UTC) Cc: "guile-user@gnu.org" , rlb@defaultvalue.org To: Panicz Maciej Godek Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 17 20:03:51 2013 Return-path: Envelope-to: guile-user@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 1VLzcr-0005jm-Hd for guile-user@m.gmane.org; Tue, 17 Sep 2013 20:03:49 +0200 Original-Received: from localhost ([::1]:42869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLzcq-00076d-NJ for guile-user@m.gmane.org; Tue, 17 Sep 2013 14:03:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLzcd-00076L-0t for guile-user@gnu.org; Tue, 17 Sep 2013 14:03:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLzcY-0001CK-1X for guile-user@gnu.org; Tue, 17 Sep 2013 14:03:34 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:62993 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLzcX-0001CE-UU for guile-user@gnu.org; Tue, 17 Sep 2013 14:03:29 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 69B7BE9D4; Tue, 17 Sep 2013 14:03:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=R+Jce7nNPGiBbJyAKyRTootFO6I=; b=GQhoKL vmBJoWNBFoFjocnYoWUueJA5PsvmSMfzEPS35DvrisRX7VukTD4GAdjizT2P/yT3 ei7qIRFqSwJv1b5sstMUNe1FdksvkZ3VtXHJKeDF74qI4qYIPJovmc5w+qIBF7al nuzcKSH2IFsA4oj+LFAHP3r5n7WM/2Nph8MgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Xa1VMpgYWYlvOiHgw3BbL0i4UNWfd6CQ iymbNmeeHSjfhxKX84jTaISCg9a3d23WU+Vd1GwJa4DzNMYuoQV0L1nUua3PfYt2 wm94quuqiQAO8wCGVGrqL3wvozT2yalP8+KclxHvmHlxfKYQpXHJo+GAnCmvxn3o vzacFyd3Rcc= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 628EAE9D3; Tue, 17 Sep 2013 14:03:29 -0400 (EDT) Original-Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id BA873E9D2; Tue, 17 Sep 2013 14:03:28 -0400 (EDT) In-Reply-To: (Panicz Maciej Godek's message of "Tue, 17 Sep 2013 14:37:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Pobox-Relay-ID: 74BEB842-1FC3-11E3-8316-CE710E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 208.72.237.25 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10810 Archived-At: On Tue 17 Sep 2013 14:37, Panicz Maciej Godek writes: > So my question is: what is the status of the statprof? It's fine :) > (define (increase x) > (sleep 1) > (1+ x)) > > (begin > (statprof-reset 0 500 #t) > (statprof-start) > (let loop ((i 0)) > (if (< i 10) > (loop (increase i)) > i)) > (statprof-stop) > (statprof-display)) Statprof runs on SIGPROF ticks, driven by setitimer. These ticks run after a constant amount of CPU time spent. Your test doesn't consume any CPU time because it's sleeping, so no ticks get recorded. Also note that using the "statprof" function is much easier. Cheers, Andy -- http://wingolog.org/