[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme profiling
From: |
Keisuke Nishida |
Subject: |
Re: Scheme profiling |
Date: |
22 Sep 2000 09:03:58 -0400 |
User-agent: |
T-gnus/6.14.4 (based on Gnus v5.8.6) (revision 02) SEMI/1.13.7 (Awazu) Chao/1.14.0 (Momoyama) Emacs/20.7 (i686-pc-linux-gnu) MULE/4.1 (AOI) |
address@hidden (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