るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.042秒)
トップページ > バージョン:2.6.0[x] > ライブラリ:ビルトイン[x] > クエリ:@[x] > クエリ:start[x] > モジュール:GC::Profiler[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. pop start
  4. pop3 start
  5. http start

キーワード

検索結果

GC::Profiler.report(out = $stdout) -> nil (64.0)

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

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

@param out 結果の出力先を指定します。デフォルトは $stdout です。

//emlist[例][ruby]{
GC::Profiler
.enable
GC.start
GC::Profiler
.report

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

@see GC::Profiler.result...

GC::Profiler.raw_data -> [Hash, ...] | nil (46.0)

GC のプロファイル情報を GC の発生ごとに Hash の配列 (:GC_INVOKE_TIME が早いもの順)で返します。GC::Profiler が有効になっ ていない場合は nil を返します。

...発生ごとに Hash の配列
(:GC_INVOKE_TIME が早いもの順)で返します。GC::Profiler が有効になっ
ていない場合は nil を返します。

例:

GC::Profiler
.enable
GC.start
GC::Profiler
.raw_data
# => [
{
:GC_TIME=>1.3000000000000858e-05,
:GC_INVOKE_...
...IL を有効にして Ruby をビルドした場合、以下の
キーも参照できます。

* :GC_MARK_TIME
* :GC_SWEEP_TIME
* :ALLOCATE_INCREASE
* :ALLOCATE_LIMIT
* :HEAP_USE_SLOTS
* :HEAP_LIVE_OBJECTS
* :HEAP_FREE_OBJECTS
* :HAVE_FINALIZE

@see GC::Profiler.report, GC::Profiler.result...