Results of 1 - 5 of about 5 for collected (0.001 sec.)
- Worker::collect — Collect references to completed tasks | PHP 8.3 12703
- Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $collector = ? ): int Allows the worker to collect references determined to be garbage by the o
... ptionally 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
- gc_status — ガベージコレクタに関する情報を取得する | PHP 8.3 8953
- 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
- Pool::collect — Collect references to completed tasks | PHP 8.3 8843
- Pool::collect (PECL pthreads >= 2.0.0) Pool::collect — Collect references to completed tasks 説明 public function Pool::collect ( Callable $collector = ? ): int Allows the pool to collect references determined to be garbage by the optionall
... y 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. 例 ...
-
https://man.mtool.work/php/8.3/pool.collect.html
- 例 | PHP 8.3 7795
- 例 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 concurrently, and a client that talks to a server over TCP. 例
... 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
- パフォーマンスの考慮点 | PHP 8.3 7629
- パフォーマンスの考慮点 可能性があるルートを単純に収集すると、パフォーマンスにごくわずかな影響があると既に前述しました。 しかし、これは PHP 5.3 と PHP 5.2 を比較する場合です。 可能性があるルートを記録すると、PHP 5.2 のように全く記録しないもの
... 同じように実行すると、 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