るりまサーチ

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

別のキーワード

  1. logger sev_label
  2. _builtin label
  3. _builtin base_label
  4. tms label
  5. location label

ライブラリ

クラス

モジュール

キーワード

検索結果

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

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

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

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

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

@see Benchmark::Tms#format...

Benchmark::Job#report(label = "") { ... } -> self (15209.0)

与えられたラベルとブロックをジョブリストに登録します。

...与えられたラベルとブロックをジョブリストに登録します。

@param label ラベル...

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

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

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

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

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

@see Benchmark::Tms#format...

Benchmark.#bm(label_width = 0, *labels) {|rep| ... } -> [Benchmark::Tms] (261.0)

Benchmark.#benchmark メソッドの引数を簡略化したものです。

...@param label_width ラベルの幅を指定します。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。

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

n = 50000
Benchmark.bm do |x|
x.report { for i in 1..n; a = "1"; end }
x.report { n.ti...
...mes do ; a = "1"; end }
x.report { 1.upto(n) do ; a = "1"; end }
end

#=>
#
# user system total real
# 1.033333 0.016667 1.016667 ( 0.492106)
# 1.483333 0.000000 1.483333 ( 0.694605)
# 1.516667 0.000000 1.516667 ( 0.711077)
//}

以下のようにも書けま...
...す。

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

n = 50000
Benchmark.bm(7) do |x|
x.report("for:") { for i in 1..n; a = "1"; end }
x.report("times:") { n.times do ; a = "1"; end }
x.report("upto:") { 1.upto(n) do ; a = "1"; end }
end

#=>
# user system total rea...

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

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

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

基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示...
...文字列を指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。
@param labels ブロックが Benchmark::Tms オブ...
...経過時間で置き換えられます。Benchmark::Tms#real
: %n
ラベルで置き換えられます(Mnemonic: n of "*n*ame")。Benchmark::Tms#label

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

n = 50000

# これは
# Benchmark.bm(7, ">total:", ">avg:") do |x| ... end
# と同じ
Benchmark.bench...

絞り込み条件を変える

Benchmark::Job#item(label = "") { ... } -> self (109.0)

与えられたラベルとブロックをジョブリストに登録します。

...与えられたラベルとブロックをジョブリストに登録します。

@param label ラベル...

rdoc (42.0)

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。

...arset charset

生成する HTML の charset を指定します。

可能であれば --encoding を使用してください。

: --coverage-report level, --dcov level

ドキュメントが記述されていない要素に関するレポートを出力します。0 以
下を指定した...
...の引数に関するレポー
トを出力します。level を省略した場合は 0 を指定したと見なされます。

: --no-coverage-report, --no-dcov

ドキュメントが記述されていない要素に関するレポートを出力しません。

: --debug

実行時に内部...
...スト
* 数字+ピリオドで番号付きリスト
* アルファベット+ピリオドで
アルファベットリスト

====[a:labeled_list] ラベル付きリスト

ラベル付きリスト(description list とも呼ばれる)は通常大括弧でラベルを囲
います。...

ruby 1.8.4 feature (12.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...ed Oct 19 08:28:32 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * file.c (rb_file_join): elements may contain null pointer strings.
# report and fixed by Lloyd Zusman (hippoman): [ruby-core:06326]

NULLポインタを持つStringを渡すとFile.joinがSEGVすることがあっ...
...k/canvas.rb, ext/tk/lib/tk/entry.rb,
# ext/tk/lib/tk/frame.rb, ext/tk/lib/tk/image.rb,
# ext/tk/lib/tk/itemconfig.rb, ext/tk/lib/tk/labelframe.rb,
# ext/tk/lib/tk/listbox.rb, ext/tk/lib/tk/menu.rb,
# ext/tk/lib/tk/radiobutton.rb, ext/tk/lib/tk/scale.rb,
# ext/...
...))

: RDoc [bug]

#Tue Oct 25 02:12:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):
# reduce redundant backtrack. [ruby-talk:161771]

正規表現のバックトラックが深くなりすぎて失敗する...