1件ヒット
[1-1件を表示]
(0.032秒)
ライブラリ
- objspace (1)
検索結果
-
ObjectSpace
. # allocation _ sourcefile(object) -> String (58.0) -
objectの元となったソースファイル名を返します。
...uby]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocatio...