るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. stringio print
  2. _builtin print
  3. cgi print
  4. http get_print
  5. net/http get_print

ライブラリ

モジュール

検索結果

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

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

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

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

Profiler__ (18019.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 ...