This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Scheme profiling


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]