るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.391秒)
トップページ > クエリ:i[x] > クエリ:class[x] > クエリ:trace_object_allocations[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

種類

ライブラリ

モジュール

検索結果

ObjectSpace.#trace_object_allocations { ... } (24213.0)

与えられたブロック内でオブジェクトのトレースを行います。 

...ェクトのトレースを行います。 

//emlist[例][ruby]{
require 'objspace'

class
C
i
nclude ObjectSpace

def foo
trace_object_allocations
do
obj = Object.new
p "#{allocation_sourcefile(obj)}:#{allocation_sourceline(obj)}"
end
end
end

C.new.foo #=> "objtrace.rb:...

NEWS for Ruby 2.1.0 (90.0)

NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。

== 2.0.0 以降の変更

=== 言語仕様の変更

* キーワード引数のデフォルト値が省略可...
...tion: false` を受け付けるようになりました

* Kernel
* 追加: Kernel#singleton_method(Object#singleton_method)

* Module
* 追加: Module#using, which activates refinements of the specified module only
i
n the current class or module definition.
* 追加: Module#si...
...:Class.file コンストラクタのためにオプショナル引数を取れるようになりました

* matrix
* 追加: Vector#cross_product

* net/smtp
* 追加: Net::SMTP#rset RSET コマンドに対応している

* objspace
* 追加: ObjectSpace.#trace_object_allocations...