Coverage and thread

coverage
e$B$G!"%9%l%C%IFb$GF0:n$7$?%3!<%I$,?t$($i$l$J$$$h$&$J$N$G$9$,!"e(B
e$B$=$&$$$&$b$N$J$s$G$7$?$C$1e(B?

% cat z.rb
Thread.new {
100.times {
1 + 1
}
}.join
% ./ruby -rcoverage -ve ’
Coverage.start
load “z.rb”
p Coverage.result

ruby 1.9.2dev (2010-01-03 trunk 26233) [i686-linux]
{“z.rb”=>[1, 0, 0, nil, nil]}

e$B%9%l%C%I$G$J$1$l$P?t$($i$l$^$9!#e(B

% cat z2.rb
100.times {
1 + 1
}
% ./ruby -rcoverage -ve ’
Coverage.start
load “z2.rb”
p Coverage.result

ruby 1.9.2dev (2010-01-03 trunk 26233) [i686-linux]
{“z2.rb”=>[1, 100, nil]}

e$B1sF#$G$9!#e(B

2010e$BG/e(B1e$B7ne(B3e$BF|e(B3:31 Tanaka A. [email protected]:

coverage e$B$G!"%9%l%C%IFb$GF0:n$7$?%3!<%I$,?t$($i$l$J$$$h$&$J$N$G$9$,!"e(B
e$B$=$&$$$&$b$N$J$s$G$7$?$C$1e(B?

e$B0U?^$7$?5sF0$G$O$"$j$^$;$s!#e(B

coverage e$B$K8B$i$:!"e(Bevent hook e$B$,$=$&$$$&5sF0e(B
(e$B%U%C%/$r@_Dj$7$?8e$Ge(B
e$B5/F0$7$?%9%l%C%I$N%$%Y%s%H$,=&$o$l$J$$e(B)
e$B$K$J$C$F$7$^$C$F$$$k$h$&e(B
e$B$G$9!#$3$l$O%P%0$H$$$C$F$$$$$H;W$$$^$9!#e(B

[ruby-core:25191] e$B$GJs9p$5$l$F!“e(B[ruby-core:27471]
e$B$K%Q%C%A$,$”$j!"e(B
e$B8=:_$5$5$@$5$se(B (e$B$G$$$$$N$+$J!)e(B) e$B$NJV;vBT$A$G$9!#e(B