[plt-scheme] errotrace in 4.0?
On Sep 14, Jon Rafkind wrote:
> Oh *rolls eyes*. Regardless of whether I wanted the profiler I need
> to do something like
>
> mzscheme -l errortrace -f somefile.ss
>
> And if I want the profiler then I should really do
>
> mzscheme -f top-level.ss
>
> where top-level.ss doesn't have #lang scheme and does the work of
> require'ing errortrace and turning profiling information on.
>
> That would be nice to put in the quick start guide. Anyway, thanks
> for setting me straight.
A non-quick-start option:
* Get http://barzilay.org/interactive.ss, and load it from your
~/.mzschemerc,
winooski:/tmp eli> mz
Welcome to MzScheme v4.1.0.3 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
-> ,prof +
-> ,r x.ss
20100
-> ,prof *
Sorting profile data...
=========================================================
time = 0 : no. = 201 : foo in #<syntax:/tmp/x.ss:7:0>
=========================================================
time = 0 : no. = 1 : #f in #<syntax:/tmp/x.ss:12:0>
Total samples: 0
-> ,h prof
profile (prof): profiler control
> ,prof [<flag> ...]
[...blah blah blah...]
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!