るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. comparable >
  4. complex >
  5. integer >

ライブラリ

検索結果

Profiler__ (38018.0)

プロファイラの実装です。 Profiler__.start_profile 実行から、Profiler__.stop_profile までの 区間の実行コードのプロファイルを取得します。

...ロファイラの実装です。
Profiler__
.start_profile 実行から、Profiler__.stop_profile までの
区間の実行コードのプロファイルを取得します。

以下の使用例を参照してください。

require 'profiler'

Profiler__
.start_profile
require 'tk' #...
...このコードのプロファイルが測定される
Profiler__
.print_profile(STDOUT)

# =>
% cumulative self self total
time seconds seconds calls ms/call ms/call name
51.64 1.10 1.10 3 366.67 776.67 Kernel.require
17.3...
...d_added
6.57 1.80 0.14 1 140.00 140.00 Profiler__.start_profile
4.23 1.89 0.09 15 6.00 10.67 Kernel.extend
3.29 1.96 0.07 15 4.67 4.67 Module#extend_object
3.29 2.03 0.07 133 0.53 0.53 Kern...