クラス
- Coverage (12)
-
DRb
:: DRbServer (11) -
Encoding
:: Converter (44) -
Process
:: Status (22) - StopIteration (11)
- Thread (96)
- Time (11)
-
WEBrick
:: GenericServer (11)
モジュール
- DRb (11)
- ObjectSpace (44)
-
Profiler
_ _ (12)
キーワード
-
Profiler
_ _ (6) - alive? (22)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) - backtrace (11)
- debug (11)
-
handle
_ interrupt (11) - irb (11)
-
peek
_ result (6) -
primary
_ server (11) -
primitive
_ convert (44) -
print
_ profile (6) -
rb
_ thread _ stop (11) -
rb
_ thread _ stop _ p (11) -
report
_ on _ exception (8) - result (17)
- run (11)
-
st
_ foreach (11) - status (22)
- stop? (11)
-
stop
_ profile (6) - stopped? (11)
- stopsig (11)
- strftime (11)
-
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) - wakeup (11)
- 制御構造 (11)
検索結果
先頭5件
-
Thread
. stop -> nil (18207.0) -
他のスレッドから Thread#run メソッドで再起動されるまで、カレ ントスレッドの実行を停止します。
...ドから Thread#run メソッドで再起動されるまで、カレ
ントスレッドの実行を停止します。
//emlist[例][ruby]{
a = Thread.new { print "a"; Thread.stop; print "c" }
sleep 0.1 while a.status!='sleep'
print "b"
a.run
a.join
# => "abc"
//}
@see Thread#run, Thread#wakeup... -
Profiler
_ _ . # stop _ profile -> nil (15201.0) -
プロファイルの取得を停止します。
プロファイルの取得を停止します。 -
ObjectSpace
. # trace _ object _ allocations _ stop -> nil (12201.0) -
オブジェクト割り当てのトレースを終了します。
...オブジェクト割り当てのトレースを終了します。
トレースを終了する為には、ObjectSpace.#trace_object_allocations_startを呼んだ回数分だけこのメソッドを呼ぶ必要があります。
@see ObjectSpace.#trace_object_allocations_start... -
Profiler
_ _ . # print _ profile(file) -> () (9216.0) -
stop_profile を実行し、プロファイルの結果を file に出力します。 file には printf メソッドが定義されていなければいけません。
...
stop_profile を実行し、プロファイルの結果を file に出力します。
file には printf メソッドが定義されていなければいけません。
@param file File のインスタンスを指定します。... -
StopIteration
# result -> object (9100.0) -
この例外オブジェクトを発生させる原因となったメソッド等の返り値を返します。
...ect = Object.new
def object.each
yield :yield1
yield :yield2
:each_returned
end
enumerator = object.to_enum
p enumerator.next #=> :yield1
p enumerator.next #=> :yield2
begin
enumerator.next
rescue StopIteration => error
p error.result #=> :each_returned
end... -
static VALUE rb
_ thread _ stop _ p(VALUE thread) (6300.0) -
-
Thread
# stop? -> bool (6235.0) -
スレッドが終了(dead)あるいは停止(stop)している時、true を返します。
...スレッドが終了(dead)あるいは停止(stop)している時、true を返します。
//emlist[例][ruby]{
a = Thread.new { Thread.stop }
b = Thread.current
a.stop? # => true
b.stop? # => false
//}
@see Thread#alive?, Thread#status... -
Coverage
. result(stop: true , clear: true) -> Hash (6231.0) -
対象ファイル名をキー、測定結果を値したハッシュを返します。 測定結果の詳細は、coverage ライブラリ を参照してください。
...を返します。
測定結果の詳細は、coverage ライブラリ を参照してください。
@param stop true であれば、カバレッジの測定を終了します。
@param clear true であれば、測定記録をクリアします。
@return 測定結果を表すハッシュ
@rais......。
//emlist[bool.rb][ruby]{
def bool(obj)
if obj
true
else
false
end
end
//}
//emlist[][ruby]{
require "coverage"
Coverage.start
load "bool.rb"
p Coverage.result #=> {"bool.rb"=>[1, 0, 0, nil, 0, nil, nil]}
bool(0)
p Coverage.result # coverage measurement is not enabled (RuntimeEr......ult(clear: true, stop: false) と指定することで、続けて新しく実行された行だけを記録することができます。
//emlist[][ruby]{
require "coverage"
Coverage.start(oneshot_lines: true)
load "bool.rb"
p Coverage.result(clear: true, stop: false) #=> {"bool.rb"=>{:oneshot_l... -
Process
:: Status # stopped? -> bool (6200.0) -
プロセスが現在停止(終了ではない)している場合に真を返します。 Process.#waitpid に Process::WUNTRACED フラグを設定した 場合にだけ真になりえます。
プロセスが現在停止(終了ではない)している場合に真を返します。
Process.#waitpid に Process::WUNTRACED フラグを設定した
場合にだけ真になりえます。 -
Process
:: Status # stopsig -> Integer | nil (6200.0) -
stopped? が真の場合そのシグナルの番号を、そうでない場合は nil を返します。
...
stopped? が真の場合そのシグナルの番号を、そうでない場合は
nil を返します。... -
VALUE rb
_ thread _ stop(void) (6200.0) -
現在実行中のスレッドを停止します。 他のスレッドから rb_thread_wakeup を呼ばれると再開します。
現在実行中のスレッドを停止します。
他のスレッドから rb_thread_wakeup を呼ばれると再開します。