231件ヒット
[201-231件を表示]
(0.072秒)
別のキーワード
キーワード
-
_ id2ref (11) -
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) -
define
_ finalizer (22) -
each
_ object (44) -
garbage
_ collect (11) -
memsize
_ of (11) -
memsize
_ of _ all (11) -
reachable
_ objects _ from (11) -
trace
_ object _ allocations (11) -
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) -
undefine
_ finalizer (11)
検索結果
先頭3件
-
ObjectSpace
. # trace _ object _ allocations { . . . } (21007.0) -
与えられたブロック内でオブジェクトのトレースを行います。
...えられたブロック内でオブジェクトのトレースを行います。
//emlist[例][ruby]{
require 'objspace'
class C
include ObjectSpace
def foo
trace_object_allocations do
obj = Object.new
p "#{allocation_sourcefile(obj)}:#{allocation_sourceline(obj)}"
end... -
ObjectSpace
. # trace _ object _ allocations _ start -> nil (21007.0) -
オブジェクト割り当てのトレースを開始します。
...オブジェクト割り当てのトレースを開始します。
@see ObjectSpace.#trace_object_allocations_stop... -
ObjectSpace
. # garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (21001.0) -
どこからも参照されなくなったオブジェクトを回収します。 GC.start と同じです。
どこからも参照されなくなったオブジェクトを回収します。
GC.start と同じです。
@param full_mark マイナー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。
注意: これらのキーワード引数は Ruby の実装やバージョンによって異なりま
す。将来のバージョンとの互換性も保証されませ...