Re: Scheme profiler

"Scott G. Miller" <[email protected]> Fri, 30 Mar 2007 11:58:16 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
On Fri, Mar 30, 2007 at 10:46:01AM +0300, Nikita wrote:
> Hello,
> 
> I need a scheme profiler that could be used in SISC. But everything I've 
> found
> is based on implementation-specific features (guile, mzscheme).
> 
> The profiler from Peter Norvig's "Paradigms of Artificial Intelligence: 
> Case Studies in Common Lisp"
> [http://cybertiggyr.com/gene/lh/profile.lisp] is an example of simple 
> profiler
> that uses only standard language features.
> 
> Is there something like this for Scheme?

Not portably as far as I know.  This is because in order to profile, you 
typically must instrument the code under profile, in this case Scheme 
code.  That happens at the implementation level, not the Scheme level.  
One could transform the code using a portable program, but you'd still 
have to use non-portable things for timing the functions, etc.  And 
doing that portably would also be much slower than a native solution.

Scott

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV