This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: Scheme profiling
- To: hjstein at bfr dot co dot il (Harvey J. Stein)
- Subject: Re: Scheme profiling
- From: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Date: 22 Sep 2000 09:03:58 -0400
- Cc: Eric Enderton <eric at enderton dot org>, guile-user at gnu dot org
- List-Id: General Guile related discussions <guile-user.gnu.org>
- References: <200009212322.TAA21005@arkroyal.cnchost.com><m31yychdsu.fsf@indy.STUDENT.CWRU.Edu> <kiw4s38ppek.fsf@blinky.bloomberg.com>
hjstein@bfr.co.il (Harvey J. Stein) writes:
> > Yes, I want to measure more precise time, too. How could I do
> > that? What is an interrupt-driven profiler?
>
> He means like gcc -p & prof - The code gets regularly interrupted,
> inspected & continues.
So do we need to recompile Guile with an option to enable profiling?
I don't think that's a very good idea... though it might be good to
optionally support it.
One way that I can think of is to count the number of VM instructions
executed in a procedure. Since the execution time of most instructions
are not so much different, the number of instructions executed will well
represent the time spent in a procedure. Maybe I will try this sometime.
-- Kei
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user