るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file open
  4. file atime
  5. base file

検索結果

<< 1 2 > >>

profiler (44016.0)

プロファイラの実装です。 現在、profile ライブラリは profiler ライブラリを 利用して実装されています。

...プロファイラの実装です。
現在、profile ライブラリは profiler ライブラリを
利用して実装されています。...

Profiler__.#print_profile(file) -> () (20245.0)

stop_profile を実行し、プロファイルの結果を file に出力します。 file には printf メソッドが定義されていなければいけません。

...stop_profile を実行し、プロファイルの結果を file に出力します。
file
には printf メソッドが定義されていなければいけません。

@param file File のインスタンスを指定します。...

Profiler__.#start_profile -> object (20100.0)

プロファイルの取得を開始します。

プロファイルの取得を開始します。

Profiler__.#stop_profile -> nil (20100.0)

プロファイルの取得を停止します。

プロファイルの取得を停止します。

Profiler__::PROFILE_PROC -> Proc (20100.0)

内部で使用します。

内部で使用します。

絞り込み条件を変える

Profiler__ (20056.0)

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

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

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

require 'profiler'

Profiler
__.start_profile
r
equire '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.37 1...
...lize
8.92 1.66 0.19 514 0.37 0.37 Module#method_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#e...

GC::Profiler (12000.0)

GC の起動回数や起動したタイミング、処理時間などの GC に関するプロファイル 情報や、ヒープ全体のサイズ、ヒープ内での使用サイズやヒープ内に存在する オブジェクトの個数といった情報を扱うモジュールです。

GC の起動回数や起動したタイミング、処理時間などの GC に関するプロファイル
情報や、ヒープ全体のサイズ、ヒープ内での使用サイズやヒープ内に存在する
オブジェクトの個数といった情報を扱うモジュールです。

@see GC

GC::Profiler.enabled? -> bool (6042.0)

GC のプロファイラを起動中であれば true、停止中であれば false を返します。

...プロファイラを起動中であれば true、停止中であれば false を返します。

例:
GC::Profiler.enabled? #=> false
GC::Profiler.enable
GC::Profiler.enabled? #=> true
GC::Profiler.disable
GC::Profiler.enabled? #=> false

@see GC::Profiler.enable, GC::Profiler.disable...

GC::Profiler.raw_data -> [Hash, ...] | nil (6040.0)

GC のプロファイル情報を GC の発生ごとに Hash の配列 (:GC_INVOKE_TIME が早いもの順)で返します。GC::Profiler が有効になっ ていない場合は nil を返します。

...生ごとに Hash の配列
(:GC_INVOKE_TIME が早いもの順)で返します。GC::Profiler が有効になっ
ていない場合は nil を返します。

例:

GC::Profiler.enable
GC.start
GC::Profiler.raw_data
# => [
{
:GC_TIME=>1.3000000000000858e-05,
:GC_INVOKE_TIM...
...GC_PROFILE_MORE_DETAIL を有効にして Ruby をビルドした場合、以下の
キーも参照できます。

* :GC_MARK_TIME
* :GC_SWEEP_TIME
* :ALLOCATE_INCREASE
* :ALLOCATE_LIMIT
* :HEAP_USE_SLOTS
* :HEAP_LIVE_OBJECTS
* :HEAP_FREE_OBJECTS
* :HAVE_FINALIZE

@see GC::Profiler.report,...
...GC::Profiler.result...

GC::Profiler.report(out = $stdout) -> nil (6034.0)

GC::Profiler.result の結果を out に出力します。

...GC::Profiler.result の結果を out に出力します。

@param out 結果の出力先を指定します。デフォルトは $stdout です。

//emlist[例][ruby]{
GC::Profiler.enable
GC.start
GC::Profiler.report

# => GC 4 invokes.
# Index Invoke Time(sec) Use Size(byte) Total Si...
...ze(byte) Total Object GC Time(ms)
# 1 0.019 303720 1269840 31746 1.25899999999999967493
//}

@see GC::Profiler.result...

絞り込み条件を変える

GC::Profiler.disable -> nil (6030.0)

GC のプロファイラを停止します。

...停止します。

例:
GC::Profiler.disable
GC::Profiler.enabled? #=> false

このメソッドでは、蓄積したプロファイル情報は破棄しません。
破棄したい場合は GC::Profiler.clear を呼び出してください。

@see GC::Profiler.enable, GC::Profiler.enabled?...

GC::Profiler.clear -> nil (6024.0)

蓄積している GC のプロファイル情報をすべて削除します。

...ロファイル情報をすべて削除します。

例:
GC::Profiler.enable
GC.start
GC.start
GC::Profiler.report #=> 2 回分の GC のプロファイル情報出力する。
GC::Profiler.clear
GC.start
GC::Profiler.report #=> 1 回分の GC のプロファイル情報出力する...
<< 1 2 > >>