るりまサーチ

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

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. $-l kernel

検索結果

Gem::StreamUI::SilentProgressReporter.new(out_stream, size, initial_message, terminal_message = nil) (24301.0)

何もしません。

...何もしません。

@param out_stream 指定しても意味がありません。

@param size 指定しても意味がありません。

@param initial_message 指定しても意味がありません。

@param terminal_message 指定しても意味がありません。...

Gem::StreamUI::SimpleProgressReporter.new(out_stream, size, initial_message, terminal_message = nil) (24301.0)

このクラスを初期化します。

...ます。

@param out_stream 出力ストリームを指定します。

@param size 処理する全体の数です。

@param initial_message 初期化が終わったときに表示するメッセージを指定します。

@param terminal_message 終了時に表示するメッセージです。...

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

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

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

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

@param width ラベルの幅
@param fmtstr フォーマット文字列...

Gem::StreamUI::VerboseProgressReporter.new(out_stream, size, initial_message, terminal_message = nil) (21301.0)

このクラスを初期化します。

...param out_stream 出力ストリームを指定します。

@param size 処理する全体の数を指定します。

@param initial_message 初期化がおわったときに表示するメッセージを指定します。

@param terminal_message 終了時に表示するメッセージです。...

Thread#report_on_exception -> bool (6250.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...
...n> 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:0x00...
...007fc3f48aefc0@(irb):4 dead>
//}

@see Thread.report_on_exception...

絞り込み条件を変える

Thread.report_on_exception -> bool (6226.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: fr...
...ようにするのがより良い方法です。
* 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 `...

GC::Profiler.result -> String (6112.0)

GC のプロファイル情報をフォーマットし、文字列として返します。

...が発生した場合の実行例です。

$ ruby -e "GC::Profiler.enable; a = Array.new(100000){ 'aa' }; puts GC::Profiler.result"
GC 5 invokes.
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)
1 0.012...
...Time
Ruby が起動してから GC が起動するまでに経過した時間
: Use Size
ヒープ内での使用サイズ
: Total Size
ヒープ全体のサイズ
: Total Object
ヒープ内に存在するオブジェクトの個数
: GC Time
GC の処理時間

@see GC::Profiler.report...