Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > GC::Profilerモジュール > report

singleton method GC::Profiler.report

report(out = $stdout) -> nil[permalink][rdoc]

GC::Profiler.result の結果を out に出力します。

[PARAM] out:
結果の出力先を指定します。デフォルトは $stdout です。


GC::Profiler.enable
GC.start
GC::Profiler.report

# => GC 4 invokes.
# Index    Invoke Time(sec)       Use Size(byte)     Total Size(byte)         Total Object                    GC Time(ms)
#     1               0.019               303720              1269840                31746         1.25899999999999967493

[SEE_ALSO] GC::Profiler.result