458件ヒット
[1-100件を表示]
(0.081秒)
ライブラリ
- ビルトイン (72)
- benchmark (120)
-
minitest
/ unit (1) -
net
/ http (8) -
rubygems
/ user _ interaction (192)
クラス
-
Benchmark
:: Job (24) -
Benchmark
:: Report (48) -
Gem
:: StreamUI (12) -
Gem
:: StreamUI :: SilentProgressReporter (48) -
Gem
:: StreamUI :: SimpleProgressReporter (48) -
Gem
:: StreamUI :: VerboseProgressReporter (48) -
MiniTest
:: Unit (1) -
RDoc
:: Options (24) - Thread (36)
モジュール
- Benchmark (36)
-
GC
:: Profiler (36)
キーワード
- HTTPAlreadyReported (8)
-
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) - SilentProgressReporter (12)
- SimpleProgressReporter (12)
- VerboseProgressReporter (12)
- benchmark (12)
- bm (12)
- bmbm (12)
- clear (12)
- count (36)
-
coverage
_ report (12) -
coverage
_ report= (12) - done (36)
- item (24)
- list (12)
- new (48)
-
progress
_ reporter (12) -
raw
_ data (12) - rdoc (12)
- report (25)
-
report
_ on _ exception (18) -
report
_ on _ exception= (18) - result (12)
-
ruby 1
. 8 . 4 feature (12) - updated (36)
検索結果
先頭5件
-
Benchmark
:: Report (21000.0) -
Benchmark.#benchmark メソッドや Benchmark.#bm メソッドの 内部で使用されているクラスです。
...Benchmark.#benchmark メソッドや Benchmark.#bm メソッドの
内部で使用されているクラスです。
このライブラリのユーザーが直接意識する必要はありません。... -
RDoc
:: Options # coverage _ report -> Integer | false (12217.0) -
コマンドライン引数の --coverage-report オプションを指定していた場合、指 定した数値を返します。
...コマンドライン引数の --coverage-report オプションを指定していた場合、指
定した数値を返します。
指定しなかった場合は false を返します。... -
RDoc
:: Options # coverage _ report=(val) (12217.0) -
コマンドライン引数の --coverage-report オプションと同様の指定を行います。
...コマンドライン引数の --coverage-report オプションと同様の指定を行います。
@param val 数値オブジェクトか false を指定します。... -
Net
:: HTTPAlreadyReported (12000.0) -
HTTP レスポンス 208 (Already Reported) を表現するクラスです。
...HTTP レスポンス 208 (Already Reported) を表現するクラスです。
詳しくは 5842 を見てください。... -
Gem
:: StreamUI # progress _ reporter(*args) -> SilentProgressReporter | SimpleProgressReporter | VerboseProgressReporter (9500.0) -
処理の進捗を報告するためのオブジェクトを返します。
...ます。
返されるオブジェクトの種類は現在の設定によります。
@param args 返値となるオブジェクトを初期化するための引数です。
@see Gem::StreamUI::SilentProgressReporter, Gem::StreamUI::SimpleProgressReporter, Gem::StreamUI::VerboseProgressReporter... -
Thread
# report _ on _ exception=(newstate) (9262.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_exceptio......> true
a.run
# => #<Thread:0x00007fc3f48c7908@(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... -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (9252.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
...Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示......す。
@param caption レポートの一行目に表示する文字列を指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用......れます。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。
=== フォーマット文字列
フォーマット文字列として以下が使用できます。
: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %... -
Thread
. report _ on _ exception=(newstate) (9220.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...デフォルトは false です。
Thread.new { 1.times { raise } }
は $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:......了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しか......なかったりするかもしれません。
スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。......ォルトは true です。
Thread.new { 1.times { raise } }
は $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 `tim... -
Benchmark
:: Report # report(label = "" , *fmt) { . . . } -> Benchmark :: Tms (9201.0) -
ラベルと与えられたブロックの実行時間を標準出力に出力します。
...ラベルと与えられたブロックの実行時間を標準出力に出力します。
出力のフォーマットは Benchmark::Tms#format が行います。
@param label ラベル
@param fmt 結果に出力したいオブジェクト
@see Benchmark::Tms#format... -
Thread
# report _ on _ exception -> bool (9162.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_exceptio......> true
a.run
# => #<Thread:0x00007fc3f48c7908@(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...