るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b
  5. b _builtin

検索結果

<< 1 2 3 > >>

Benchmark::Report (21000.0)

Benchmark.#benchmark メソッドや Benchmark.#bm メソッドの 内部で使用されているクラスです。

...Benchmark.#benchmark メソッドや Benchmark.#bm メソッドの
内部で使用されているクラスです。

このライブラリのユーザーが直接意識する必要はありません。...

Gem::StreamUI::VerboseProgressReporter (12000.0)

現在の進捗に関するメッセージを表示する進捗報告のクラスです。

現在の進捗に関するメッセージを表示する進捗報告のクラスです。

Benchmark.#benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|rep| ...} -> [Benchmark::Tms] (9434.0)

Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。

...
B
enchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。

基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示...
...指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。
@param labels ブロックが Benchmark::Tms オブジェクト...
...す。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの system CPU time で置き換えられます。Benchmar...

Benchmark::Report#report(label = "", *fmt) { ... } -> Benchmark::Tms (9301.0)

ラベルと与えられたブロックの実行時間を標準出力に出力します。

...ラベルと与えられたブロックの実行時間を標準出力に出力します。

出力のフォーマットは Benchmark::Tms#format が行います。

@param label ラベル
@param fmt 結果に出力したいオブジェクト

@see Benchmark::Tms#format...

Benchmark.#bmbm(width = 0) {|job| ... } -> [Benchmark::Tms] (9212.0)

Benchmark::Job オブジェクトを生成して、それを引数として与えられたブロックを 実行します。

...
B
enchmark::Job オブジェクトを生成して、それを引数として与えられたブロックを
実行します。

ベンチマークの結果は GC の影響によって歪められてしまうことがあります。
このメソッドは与えられたブロックを二度実行する...
...されません。

@param width ラベルの幅を指定します。

//emlist[][ruby]{
require 'benchmark'

array = (1..1000000).map { rand }

B
enchmark.bmbm do |x|
x.report("sort!") { array.dup.sort! }
x.report("sort") { array.dup.sort }
end

#=>
#
# Rehearsal ------------------------------...

絞り込み条件を変える

Gem::StreamUI#progress_reporter(*args) -> SilentProgressReporter | SimpleProgressReporter | VerboseProgressReporter (6500.0)

処理の進捗を報告するためのオブジェクトを返します。

...ます。

返されるオブジェクトの種類は現在の設定によります。

@param args 返値となるオブジェクトを初期化するための引数です。

@see Gem::StreamUI::SilentProgressReporter, Gem::StreamUI::SimpleProgressReporter, Gem::StreamUI::VerboseProgressReporter...

Thread#report_on_exception -> bool (6256.0)

真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...の Thread.report_on_exception です。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。

//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception...
...c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b
= Thread.new{ Thread.stop; raise }
b
.report_on_exception = false
b
.run #...
...=> #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}

@see Thread.report_on_exception...

Thread.report_on_exception -> bool (6220.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...ise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'

これによってスレッドのエラーを早期...
...* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しかし、この場合、例外をハンドルするのが遅れた...
...されていて
終了を待つことができなかったりするかもしれません。

スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかど...

Benchmark::Report.new(width = 0, fmtstr = nil) -> Benchmark::Report (6217.0)

Benchmark::Report のインスタンスを初期化して返します。

...
B
enchmark::Report のインスタンスを初期化して返します。

通常このメソッドがユーザーによって直接呼び出されることはありません。

@param width ラベルの幅
@param fmtstr フォーマット文字列...
<< 1 2 3 > >>