e$B!!$5$5$@$G$9!%e(B
e$B!!$"$k%*%V%8%'%/%H$,$I$NDxEY%a%b%j$r?)$C$F$$$k$N$+D4$Y$k$?$a$NBN7O$r:n$ke(B
e$B$N$O$I$&$G$7$g$&$+!%e(B
rb_ary_memsize(), onig_memsize(), rb_str_memsize(), rb_io_memsize(),
st_memsize(), rb_transcoding_memsize(), rb_econv_memsize()
e$B$r:n$C$F$_$^e(B
e$B$7$?!%e(B
http://www.atdot.net/sp/readonly/qzm8lk
e$B!!B?J,!$?t$(4V0c$C$F$k$@$m$&$7!$%a%b%j%"%m!<%1!<%7%g%s!$$^$!!$;`$Le(B
e$B!Je(BSEGVe$B!K$9$k$3$H$b$J$$$@$m$&!$$H$+!%e(B
e$B!!Nc$($P!$$3$s$J$U$&$K$9$k$H!$e(BObjectSpace.count_objects
e$B$N$h$&$K!$e(BT_hoge
e$B$4$H$N%a%b%jMxMQNL$rD4$Y$ke(B ObjectSpace.count_objects_size
e$B$r:n$k$3$H$,=Pe(B
e$BMh$^$9!%e(B
http://www.atdot.net/sp/readonly/45n8lk
e$B!!$3$l$H!$e(BObjectSpace.count_objects
e$B$rJ;MQ$7$F!$e(B1e$B%*%V%8%'%/%H$"$?$j$N%ae(B
e$B%b%j;HMQNL$NJ?6Q$r=P$7$?%0%i%U!'e(B
http://www.atdot.net/fp_store/f.lk88lk/file.g.png
e$B!!%U%!%$%k$,0N$$Bg$-$/$J$C$F$^$9$M!%e(B
e$B!!$3$N$^$^$@$H!$e(BT_DATA
e$B$r$^$H$b$K07$&$3$H$,=PMh$J$$$N$G$9$,!$$3$NJU$r07e(B
e$B$&$?$a$N;EAH$_$O$^$?:#EYDs0F$7$^$9!%e(B
SASADA Koichi wrote::
e$B!!B?J,!$?t$(4V0c$C$F$k$@$m$&$7!$%a%b%j%"%m!<%1!<%7%g%s!$$^$!!$;`$Le(B
e$B!Je(BSEGVe$B!K$9$k$3$H$b$J$$$@$m$&!$$H$+!%e(B
e$B!!JT=8$7$F$$$?$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9$k$s$G$9$,!$$I$&$G$7$g$&$+!%$"$H!$$3$N5!G=$Oe(B
objspace e$B$H$$$&3HD%%i%$%V%i%j$H$7$FDs6!$7$h$&$H$7$F$$$^$9!%e(B
e$B!!$?$H$($P!$e(BGC::Profiler e$B$J$s$F$N$b8x3+e(B API
e$B$J5$$,$7$^$9$,!$e(BJRuby e$B$G$N<Be(B
e$BAu$C$F9M$($F$k$s$G$7$g$&$+!%e(BObjectSpace.count_objects
e$B$b$=$&$+$J!%e(B
Yukihiro M. wrote::
e$B;W$$$^$9!#e(B
|e$B!!$?$H$($P!$e(BGC::Profiler e$B$J$s$F$N$b8x3+e(B API e$B$J5$$,$7$^$9$,!$e(BJRuby e$B$G$N<Be(B
|e$BAu$C$F9M$($F$k$s$G$7$g$&$+!%e(BObjectSpace.count_objects e$B$b$=$&$+$J!%e(B
GC::Profilere$B$K$D$$$F$O$^$@5$$E$+$l$F$J$$$_$?$$$G$9$Me(B(e$B6l>P!#e(B
e$BMW$9$k$K$3$l0J>eA}$d$7$?$/$J$$$H!#e(B
count_objectse$B$Oe(BCRubye$B0MB8$@$H%I%-%e%a%s%H$K=q$$$F$"$j$^$9$M!#e(B
e$B:{ED$/$s$Ne(Bobjspacee$B%i%$%V%i%j$,$G$-$l$P$=$A$i$K0\F0$7$?J}$,$he(B
e$B$$$+$b$7$l$^$;$s!#e(B
e$B!!e(Brb_objspace_walk_heaps()
e$B$,=PMh$l$P$9$0$K%3%_%C%H=PMh$k$s$G$9$,!$$I$&e(B
e$B$G$7$g$&!%e(B
e$B!!$A$J$_$K!$e(Bcount_objects e$B$r0$9$N$O!Je(Bgc.c
e$B$N%=!<%9%3!<%IE*$J0UL#$G!Ke:e(B
e$BNo$J5$$b$9$k$s$G$9$,!$$9$G$Ke(B require
e$B$;$:$K;H$($k%a%=%C%I$J$N$G!$e(B1.9.2
e$B$+$iJQ$($k$N$O$I$&$J$N$+$J$!!$$H$O;W$$$^$9!%e(B
e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
In message “Re: [ruby-dev:38627] Re: [Feature: trunk] *_memsize()”
on Mon, 15 Jun 2009 18:27:37 +0900, SASADA Koichi [email protected]
writes:
|e$B!!$3$NJU$N5!G=$O7k9=<BAu0MB8$J$s$G!$B>$Ne(B Ruby e$B=hM}7O$N$3$H$O$“$s$^$j9M$(e(B
|e$B$J$$J}$,$$$$$h$&$J5$$,$9$k$s$G$9$,!$$I$&$G$7$g$&$+!%$”$H!$$3$N5!G=$Oe(B
|objspace e$B$H$$$&3HD%%i%$%V%i%j$H$7$FDs6!$7$h$&$H$7$F$$$^$9!%e(B
e$B$$$d!"<BAu0MB8$@$HL@<($9$l$P$=$l$O$=$l$G$$$$$s$8$c$J$$$+$H$Oe(B
e$B;W$$$^$9!#e(B
|e$B!!$?$H$($P!$e(BGC::Profiler e$B$J$s$F$N$b8x3+e(B API e$B$J5$$,$7$^$9$,!$e(BJRuby e$B$G$N<Be(B
|e$BAu$C$F9M$($F$k$s$G$7$g$&$+!%e(BObjectSpace.count_objects e$B$b$=$&$+$J!%e(B
GC::Profilere$B$K$D$$$F$O$^$@5$$E$+$l$F$J$$$_$?$$$G$9$Me(B(e$B6l>P!#e(B
e$BMW$9$k$K$3$l0J>eA}$d$7$?$/$J$$$H!#e(B
count_objectse$B$Oe(BCRubye$B0MB8$@$H%I%-%e%a%s%H$K=q$$$F$"$j$^$9$M!#e(B
e$B:{ED$/$s$Ne(Bobjspacee$B%i%$%V%i%j$,$G$-$l$P$=$A$i$K0\F0$7$?J}$,$he(B
e$B$$$+$b$7$l$^$;$s!#e(B