yyuu
11/25/2004 3:47:00 AM
Hi,
I'm grad that you interested in rem :)
>
> Looks very interesting... a couple questions:
> * it's based on set_trace_func + SCRIPT_LINES__, right?
> * how big is the slowdown when debugging?
>
Yes,
Rem is based on set_trace_func and SCRIPT_LINES__.
Rem is very slow, maybe more slower than debug.rb.
I use time command (on zsh) to check how slow rem is.
% cat hello.rb
printf("hello, world\n");
% time echo "cont" | ruby -rdebug hello.rb
...
echo "cont" 0.00s user 0.01s system 167% cpu 0.006 total
ruby -rdebug hello.rb 0.13s user 0.01s system 101% cpu 0.138 total
% time echo "cont" | rem hello.rb
...
echo "cont" 0.00s user 0.01s system 61% cpu 0.016 total
rem hello.rb 0.43s user 0.05s system 102% cpu 0.470 total
--
yyuu <subterranean.homesick@gmail.com>