« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 10 for collected (0.001 sec.)
Collect references to completed tasks 12210
« Worker Worker::getStacked » PHP Manual Worker Collect references to completed tasks 検索 Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $col ... he optionally given collector. パラメータ collector A Callable collector that returns a boolean on whether the task can be collected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks on the worker's ... stack to be collected. 例 例1 A basic example of Worker::collect() <?php $worker = new Worker (); echo "There are currently { $worker -> collect ... ()} tasks on the stack to be collected\n" ; for ( $i = 0 ; $i < 15 ; ++ $i ) { $worker -> stack (new class extends Threaded {}); } echo "There are { $worker -> c ...
https://man.mtool.work/php/8.3/worker.collect.html
Collect references to completed tasks 12210
« Worker Worker::getStacked » PHP Manual Worker Collect references to completed tasks 検索 Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $col ... he optionally given collector. パラメータ collector A Callable collector that returns a boolean on whether the task can be collected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks on the worker's ... stack to be collected. 例 例1 A basic example of Worker::collect() <?php $worker = new Worker (); echo "There are currently { $worker -> collect ... ()} tasks on the stack to be collected\n" ; for ( $i = 0 ; $i < 15 ; ++ $i ) { $worker -> stack (new class extends Threaded {}); } echo "There are { $worker -> c ...
https://man.mtool.work/php/8.3/worker.collect.html
Collect references to completed tasks 8956
« Pool Pool::__construct » PHP Manual Pool Collect references to completed tasks 検索 Pool::collect (PECL pthreads >= 2.0.0) Pool::collect — Collect references to completed tasks 説明 public function Pool::collect ( Callable $collector = ? ... he optionally given collector. パラメータ collector A Callable collector that returns a boolean on whether the task can be collected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks in the pool to ... be collected. 変更履歴 バージョン 説明 PECL pthreads 3.0.0 An integer is now returned, and the collector parameter is now optional. 例 ... ing $pool -> shutdown (); 関連キーワード: Pool collect collector pool tasks references Collect completed pthreads Callable collected now new Search construct function int Allows determined garbage ...
https://man.mtool.work/php/8.3/pool.collect.html
Collect references to completed tasks 8956
« Pool Pool::__construct » PHP Manual Pool Collect references to completed tasks 検索 Pool::collect (PECL pthreads >= 2.0.0) Pool::collect — Collect references to completed tasks 説明 public function Pool::collect ( Callable $collector = ? ... he optionally given collector. パラメータ collector A Callable collector that returns a boolean on whether the task can be collected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks in the pool to ... be collected. 変更履歴 バージョン 説明 PECL pthreads 3.0.0 An integer is now returned, and the collector parameter is now optional. 例 ... ing $pool -> shutdown (); 関連キーワード: Pool collect collector pool tasks references Collect completed pthreads Callable collected construct Allows determined garbage optionally given boolean whether task rare cases custom need used ...
https://man.mtool.work/php/8.3/pool.collect.html
ガベージコレクタに関する情報を取得する 8849
« gc_mem_caches get_cfg_var » PHP Manual PHP オプション/情報 関数 ガベージコレクタに関する情報を取得する 検索 gc_status (PHP 7 >= 7.3.0, PHP 8) gc_status — ガベージコレクタに関する情報を取得する 説明 function gc_status (): array ガベージコレ ... に関する情報を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 次の要素を持つ連想配列を返します: "runs" "collected" "threshold" "roots" "running" "protected" "full" "buffer_size" "application_time" "collector_time" "destructor_time" "fre ... ollect_cycles (); var_dump ( gc_status ()); 上の例の出力は、 たとえば以下のようになります。 array(4) { ["runs"]=> int(5) ["collected"]=> int(100002) ["threshold"]=> int(50001) ["roots"]=> int(0) } 上の例の PHP 8.3 での出力は、たとえば以下のようになります。 ... : array(12) { ["running"]=> bool(false) ["protected"]=> bool(false) ["full"]=> bool(false) ["runs"]=> int(5) ["collected"]=> int(100002) ["threshold"]=> int(50001) ["buffer_size"]=> int(131072) ["roots"]=> int(0) ["application_time"]=> float(0 ...
https://man.mtool.work/php/8.3/function.gc-status.html
ガベージコレクタに関する情報を取得する 8813
« gc_mem_caches get_cfg_var » PHP Manual PHP オプション/情報 関数 ガベージコレクタに関する情報を取得する 検索 gc_status (PHP 7 >= 7.3.0, PHP 8) gc_status — ガベージコレクタに関する情報を取得する 説明 function gc_status (): array ガベージコレ ... に関する情報を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 次の要素を持つ連想配列を返します: "runs" "collected" "threshold" "roots" "running" "protected" "full" "buffer_size" "application_time" "collector_time" "destructor_time" "fre ... ollect_cycles (); var_dump ( gc_status ()); 上の例の出力は、 たとえば以下のようになります。 array(4) { ["runs"]=> int(5) ["collected"]=> int(100002) ["threshold"]=> int(50001) ["roots"]=> int(0) } 上の例の PHP 8.3 での出力は、たとえば以下のようになります。 ... : array(12) { ["running"]=> bool(false) ["protected"]=> bool(false) ["full"]=> bool(false) ["runs"]=> int(5) ["collected"]=> int(100002) ["threshold"]=> int(50001) ["buffer_size"]=> int(131072) ["roots"]=> int(0) ["application_time"]=> float(0 ...
https://man.mtool.work/php/8.3/function.gc-status.html
例 7401
« 定義済み定数 Yar_Server » PHP Manual Yar 例 検索 例 The examples below walk through a complete service: a server that exposes a few arithmetic methods, a synchronous client that calls them, a client that fans several calls out concurrentl ... well as methods whose names start with an underscore, stay hidden from clients. The doc comments of the public methods are collected and shown on the service information page. RPC requests arrive as HTTP POST requests carrying a binary Yar protocol payloa ...
https://man.mtool.work/php/8.3/yar.examples.html
例 7401
« 定義済み定数 Yar_Server » PHP Manual Yar 例 検索 例 The examples below walk through a complete service: a server that exposes a few arithmetic methods, a synchronous client that calls them, a client that fans several calls out concurrentl ... well as methods whose names start with an underscore, stay hidden from clients. The doc comments of the public methods are collected and shown on the service information page. RPC requests arrive as HTTP POST requests carrying a binary Yar protocol payloa ...
https://man.mtool.work/php/8.3/yar.examples.html
パフォーマンスの考慮点 7258
« 循環の収集 DTrace 動的トレーシング » PHP Manual ガベージコレクション パフォーマンスの考慮点 検索 パフォーマンスの考慮点 可能性があるルートを単純に収集すると、パフォーマンスにごくわずかな影響があると既に前述しました。 しかし、これは PHP 5. ... 同じように実行すると、 PHP の実行終了後に、下記が表示されているでしょう。 例5 GC 統計 GC Statistics ------------- Runs: 110 Collected: 2072204 Root buffer length: 0 Root buffer peak: 10000 Possible Remove from Marked Root Buffered buffer grey -------- ---- ...
https://man.mtool.work/php/8.3/features.gc.performance-considerations.html
パフォーマンスの考慮点 7258
« 循環の収集 DTrace 動的トレーシング » PHP Manual ガベージコレクション パフォーマンスの考慮点 検索 パフォーマンスの考慮点 可能性があるルートを単純に収集すると、パフォーマンスにごくわずかな影響があると既に前述しました。 しかし、これは PHP 5. ... 同じように実行すると、 PHP の実行終了後に、下記が表示されているでしょう。 例5 GC 統計 GC Statistics ------------- Runs: 110 Collected: 2072204 Root buffer length: 0 Root buffer peak: 10000 Possible Remove from Marked Root Buffered buffer grey -------- ---- ...
https://man.mtool.work/php/8.3/features.gc.performance-considerations.html
PREV 1 NEXT