[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: May nearly have simple statistical profiler working (need help).
From: |
Rob Browning |
Subject: |
Re: May nearly have simple statistical profiler working (need help). |
Date: |
18 Jul 2001 12:29:27 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Rob Browning <address@hidden> writes:
> Hmm. It appears there isn't a 'traps option to debug-enable. And
> though my profiler seemed to be working interactively. I've found
> that it won't work from a script without an enclosing with-traps.
Wow. It seems like it might be even more restrictive than I thought.
I tried to create a (statprof-profile . code) wrapper that you'd just
have to put around anything you want to profile
(define-macro (statprof-profile . body)
`(begin
(debug-enable 'debug)
(trap-enable 'traps)
(with-traps ,@body)))
but that doesn't work. From some limited testing, it looks like
either debug-enable or trap-enable (haven't tracked down which yet),
have to be run from the top-level to have any effect.
If this is correct, then I guess I'll just need to document that if
you want to use statprof, you have to arrange for these two functions
to be called from the top-level and you have to arrange for the
enclosing with-traps call.
Not as clean as I'd like, but I guess it should work.
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD
- Re: May nearly have simple statistical profiler working (need help)., (continued)
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/14
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/15
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/15
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/17
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/18
- Re: May nearly have simple statistical profiler working (need help).,
Rob Browning <=
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/18
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/18
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Neil Jerram, 2001/07/16
- Re: May nearly have simple statistical profiler working (need help)., Rob Browning, 2001/07/29