るりまサーチ

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

別のキーワード

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

検索結果

<< < ... 2 3 4 >>

Gem::StreamUI::VerboseProgressReporter#done -> nil (3100.0)

終了メッセージを表示します。

終了メッセージを表示します。

Gem::StreamUI::VerboseProgressReporter#updated(message) -> nil (3100.0)

現在の Gem::StreamUI::VerboseProgressReporter#count と全体の数とメッセージを表示します。

...現在の Gem::StreamUI::VerboseProgressReporter#count と全体の数とメッセージを表示します。

@param message 表示するメッセージを指定します。...

FileUtils.#cd(dir, options = {}) -> 0 (3006.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#cd(dir, options = {}) {|dir| .... } -> object (3006.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#chdir(dir, options = {}) -> 0 (3006.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}...

絞り込み条件を変える

FileUtils.#chdir(dir, options = {}) {|dir| .... } -> object (3006.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}...

Benchmark.#bm(label_width = 0, *labels) {|rep| ... } -> [Benchmark::Tms] (254.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...
...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[][rub...
...rk'

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 real
# for: 1.050000 0.000000 1.05000...

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

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

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

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

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

n...

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

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

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

@param label ラベル...
<< < ... 2 3 4 >>