303件ヒット
[1-100件を表示]
(0.015秒)
モジュール
- Benchmark (12)
- DRb (36)
- Kernel (108)
- ObjectSpace (96)
- Open3 (24)
-
Profiler
_ _ (6) - Timeout (21)
キーワード
- abort (24)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - bmbm (12)
- caller (36)
-
caller
_ locations (24) -
define
_ finalizer (24) - exit (12)
- exit! (12)
-
garbage
_ collect (12) -
pipeline
_ start (24) -
primary
_ server (12) -
primary
_ server= (12) -
start
_ profile (6) -
start
_ service (12) - timeout (21)
-
trace
_ object _ allocations _ start (12) -
trace
_ object _ allocations _ stop (12) -
undefine
_ finalizer (12)
検索結果
先頭5件
-
Open3
. # pipeline _ start(*cmds) -> [Thread] (6109.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。
...待つためのスレッ
ドの配列を返します。
例:
require "open3"
# xeyesを10秒だけ実行する。
Open3.pipeline_start("xeyes") {|ts|
sleep 10
t = ts[0]
Process.kill("TERM", t.pid)
p t.value #=> #<Process::Status: pid 911 SIGTERM (signal 15)>
}
@... -
Open3
. # pipeline _ start(*cmds) {|wait _ thrs| . . . } -> () (6109.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。
...待つためのスレッ
ドの配列を返します。
例:
require "open3"
# xeyesを10秒だけ実行する。
Open3.pipeline_start("xeyes") {|ts|
sleep 10
t = ts[0]
Process.kill("TERM", t.pid)
p t.value #=> #<Process::Status: pid 911 SIGTERM (signal 15)>
}
@... -
DRb
. # start _ service(uri=nil , front=nil , config _ or _ acl=nil) -> () (6102.0) -
dRuby のサービス(サーバ)を起動します。
dRuby のサービス(サーバ)を起動します。
これで起動したサーバはプロセスのプライマリサーバとなります。
すでにプライマリサーバが存在する場合は上書きされます。
uri に URI を文字列で指定すると、それに起動したサービスを bind します。
通常は 'druby://<hostname>:<port>' という形式の URI を指定します。
このときは TCP が通信手段として使われます。
'drbunix:' のような他のプロトコルを指定することもできます。
front でフロントオブジェクト(URI に結び付けられるオブジェクト)を
設定します。
config で H... -
ObjectSpace
. # trace _ object _ allocations _ start -> nil (6102.0) -
オブジェクト割り当てのトレースを開始します。
オブジェクト割り当てのトレースを開始します。
@see ObjectSpace.#trace_object_allocations_stop -
Profiler
_ _ . # start _ profile -> object (6102.0) -
プロファイルの取得を開始します。
プロファイルの取得を開始します。 -
Kernel
. # caller _ locations(start = 1 , length = nil) -> [Thread :: Backtrace :: Location] | nil (144.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
//emlist[例][ruby]{
def test1(start, length)......locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil)
# => ["/Users/user/test.rb:9:in `tes... -
Kernel
. # caller(start = 1) -> [String] | nil (125.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...
start 段上の呼び出し元の情報を $@
の形式のバックトレース(文字列の配列)として返します。
トップレベルでは空の配列を返します。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した......値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取得するスタックの個数を指定します。
@param range 取得したいスタックの範囲を示す Range オブジェ... -
Kernel
. # caller(start , length) -> [String] | nil (125.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...
start 段上の呼び出し元の情報を $@
の形式のバックトレース(文字列の配列)として返します。
トップレベルでは空の配列を返します。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した......値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取得するスタックの個数を指定します。
@param range 取得したいスタックの範囲を示す Range オブジェ... -
Kernel
. # caller _ locations(range) -> [Thread :: Backtrace :: Location] | nil (44.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
//emlist[例][ruby]{
def test1(start, length)......locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil)
# => ["/Users/user/test.rb:9:in `tes...