From: Andy Wingo <wingo@pobox.com>
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>, rlb@defaultvalue.org
Subject: Re: The status of statprof
Date: Tue, 17 Sep 2013 20:03:00 +0200 [thread overview]
Message-ID: <87pps7tjfv.fsf@pobox.com> (raw)
In-Reply-To: <CAMFYt2Z6DkHim1zGCv_nmn4g8N7dEz0+an5u3q5o1cEUUC9x4g@mail.gmail.com> (Panicz Maciej Godek's message of "Tue, 17 Sep 2013 14:37:49 +0200")
On Tue 17 Sep 2013 14:37, Panicz Maciej Godek <godek.maciek@gmail.com> 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/
prev parent reply other threads:[~2013-09-17 18:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 12:37 The status of statprof Panicz Maciej Godek
2013-09-17 13:38 ` Ludovic Courtès
2013-09-17 18:03 ` Andy Wingo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pps7tjfv.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=godek.maciek@gmail.com \
--cc=guile-user@gnu.org \
--cc=rlb@defaultvalue.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).