るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.072秒)
トップページ > クエリ:string[x] > クエリ:Ruby[x] > クエリ:allocation_sourcefile[x] > モジュール:ObjectSpace[x] > 種類:モジュール関数[x]

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rubygems/defaults ruby_engine
  5. rake ruby

ライブラリ

検索結果

ObjectSpace.#allocation_sourcefile(object) -> String (18216.0)

objectの元となったソースファイル名を返します。

...た場合][ruby]{
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_obje...