Hi.

GC::Profiler committed to trunk.

==usage
GC::Profiler.enable

:
:
:
# gc invoked several times

GC::Profiler.report

---------- out -------------
GC 10 invokes.
Index   Invoke Time(sec)        Use Size(byte)  Total Size(byte)
 Total Object    GC time(ms)
1       0.016                   338420          360448
 18018           0.40000000000000007772
2       0.024                   605640          622592
 31122           0.00000000000000008843
3       0.040                   1080320         1097728
 54873           0.00000000000000022972
4       0.060                   1931460         1949696
 97461           0.40010000000000034426
5       0.100                   3470040         3489792
 174447          0.79999999999999971134
6       0.168                   6236240         6258688
 312858          1.20009999999999994458


== use module and method introduce
* GC::Profiler
for Profiler

* GC::Profiler.enabled?
returns current status of GC profile mode.

* GC::Profiler.enable
updates GC profile mode.
start profiler for GC.

* GC::Profiler.disable
stop profiler.

* GC::Profiler.clear
clear before profile data.

* GC::Profiler.report
Please quote the above-mentioned.

* GC::Profiler.result
return string of GC::Profiler.report


thanks.

---
Narihiro Nakamura