« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 315 for Memory (0.001 sec.)
The Swoole\Buffer class | PHP 8.3 8994
The Swoole\Buffer class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Buffer { /* メソッド */ public function append ( string $data ): int public function clear (): void public function __destruct (): void public function expand ( ... ite ( int $offset , string $data ): void } 目次 Swoole\Buffer::append — Append the string or binary data at the end of the memory buffer and return the new size of memory allocated. Swoole\Buffer::clear — Reset the memory buffer. Swoole\Buffer::__const ... ruct — Fixed size memory blocks allocation. Swoole\Buffer::__destruct — Destruct the Swoole memory buffer. Swoole\Buffer::expand — Expand the size ... of memory buffer. Swoole\Buffer::read — Read data from the memory buffer based on offset and length. Swoole\Buffer::recycle — Releas ...
https://man.mtool.work/php/8.3/class.swoole-buffer.html
SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object | PHP ... 8771
SyncSharedMemory::__construct (PECL sync >= 1.1.0) SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object 説明 public function SyncSharedMemory::__construct ( string $name , int $size ) Constructs a named shared memory obj ... ect. パラメータ name The name of the shared memory object. 注意 : If the name already exists, it must be able to be opened by the current user that the process is running as ... or an exception will be thrown with a meaningless error message. size The size, in bytes, of shared memory to reserve. 注意 : The amount of memory cannot be resized later. Request sufficient storage up front. 戻り値 The new SyncS ... haredMemory object. エラー / 例外 An exception is thrown if the shared memory object cannot be created or opened. 例 例1 SyncSharedMem ...
https://man.mtool.work/php/8.3/syncsharedmemory.construct.html
Yac::info — Status of cache | PHP 8.3 8733
Yac::info (PECL yac >= 1.0.0) Yac::info — Status of cache 説明 public function Yac::info (): array Get status of cache system パラメータ この関数にはパラメータはありません。 戻り値 Returns an array with the following keys: memory_size Total ... shared memory in use, in bytes: the slot table plus the value blocks. slots_memory_size Memory reserved for the hash slot table, in byte ... s. values_memory_size Memory reserved for the stored values, in bytes. segment_size Size of one value memory segment, in bytes. segment_num ... Number of value memory segments. miss Number of cache misses: lookups that found nothing or an expired entry. hits Number of cache hits: successf ...
https://man.mtool.work/php/8.3/yac.info.html
The SyncSharedMemory class | PHP 8.3 8696
The SyncSharedMemory class (PECL sync >= 1.1.0) はじめに A cross-platform, native, consistent implementation of named shared memory objects. Shared memory lets two separate processes communicate without the need for complex pipes or sockets ... . There are several integer-based shared memory implementations for PHP. Named shared memory is an alternative. Synchronization objects (e.g. SyncMutex) are still require ... d to protect most uses of shared memory. クラス概要 class SyncSharedMemory { /* メソッド */ public function __construct ( string $name , int $size ) public functi ... $length = ? ) public function size (): int public function write ( string $string = ? , int $start = 0 ) } 目次 SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object SyncSharedMemory::first — Check to see if the object is the first ...
https://man.mtool.work/php/8.3/class.syncsharedmemory.html
SyncSharedMemory::read — Copy data from named shared memory | PHP 8.3 8501
SyncSharedMemory::read (PECL sync >= 1.1.0) SyncSharedMemory::read — Copy data from named shared memory 説明 public function SyncSharedMemory::read ( int $start = 0 , int $length = ? ) Copies data from named shared memory. パラメータ start ... 意 : If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment. length The number of bytes to read. 注意 : If unspecified, reading will stop at the end of the shared memory segm ... ent. If the value is negative, reading will stop the specified number of bytes from the end of the shared memory segment. 戻り値 A string containing the data read from shared memory. 例 例1 SyncSharedMemory::__construct() example <?php ... // You will probably need to protect shared memory with other synchronization objects. // Shared memory goes away when the last reference to it disappears. $mem = new SyncSh ...
https://man.mtool.work/php/8.3/syncsharedmemory.read.html
SyncSharedMemory::write — Copy data to named shared memory | PHP 8.3 8464
SyncSharedMemory::write (PECL sync >= 1.1.0) SyncSharedMemory::write — Copy data to named shared memory 説明 public function SyncSharedMemory::write ( string $string = ? , int $start = 0 ) Copies data to named shared memory. パラメータ stri ... ng The data to write to shared memory. 注意 : If the size of the data exceeds the size of the shared memory, the number of bytes written returned will be less t ... 意 : If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment. 戻り値 An integer containing the number of bytes written to shared memory. 例 例1 SyncSharedMemory::write() examp ... le <?php // You will probably need to protect shared memory with other synchronization objects. // Shared memory goes away when the last reference to it disappears. $mem = new SyncSh ...
https://man.mtool.work/php/8.3/syncsharedmemory.write.html
memory_reset_peak_usage — メモリの最大値をリセットする | PHP 8.3 8426
memory_reset_peak_usage (PHP 8 >= 8.2.0) memory_reset_peak_usage — メモリの最大値をリセットする 説明 function memory_reset_peak_usage (): void memory_get_peak_usage() が返したメモリの最大値をリセットします。 パラメータ この関数にはパラメータ ... はありません。 戻り値 値を返しません。 例 例1 memory_reset_peak_usage() の例 <?php var_dump ( memory_get_peak_usage ()); $a = str_repeat ( "Hello" , 424242 ); var_dump ( memor ... y_get_peak_usage ()); unset( $a ); memory_reset_peak_usage (); $a = str_repeat ( "Hello" , 2424 ); var_dump ( memory_get_peak_usage ()); ?> 上の例の出力は、 たとえば ... 以下のようになります。 int(422440) int(2508672) int(399208) 参考 memory_get_peak_usage() - PHP によって割り当てられたメモリの最大値を返す 他のマニュアルの関連ページ Django 1.11.14 Linux JM limit ...
https://man.mtool.work/php/8.3/function.memory-reset-peak-usage.html
実行時設定 | PHP 8.3 7813
実行時設定 php.ini の設定により動作が変化します。 Yac 設定オプション 名前 デフォルト 変更可能 変更履歴 yac.compress_threshold 4K INI_SYSTEM yac.debug 0 INI_ALL yac.enable 1 INI_SYSTEM yac.enable_cli 0 INI_SYSTEM yac.keys_memory_size 8M INI_ ... SYSTEM yac.serializer php INI_SYSTEM yac.values_memory_size 64M INI_SYSTEM 以下に設定ディレクティブに関する 簡単な説明を示します。 yac.compress_threshold int Serialized values l ... e stored entry limit, and other positive values are clamped to the 1024 .. 1M range. Compressing large values saves shared memory at the cost of some CPU on both store and retrieve. yac.debug int Reserved for debugging. As of Yac 2.4.0 this directive i ... er the CLI SAPI. It is disabled by default because command line scripts usually start and stop immediately, and the shared memory segment would be created for nothing. yac.keys_memory_size string Amount of shared memory for the table of keys. It caps h ...
https://man.mtool.work/php/8.3/yac.configuration.html
memory_get_usage — PHP スクリプトに割り当てられたメモリの量、または PHP のメモ... 7394
memory_get_usage (PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) memory_get_usage — PHP スクリプトに割り当てられたメモリの量、または PHP のメモリマネージャーがシステムから確保したメモリの量を返す 説明 function memory_get_usage ( bool $real_usage = fa ... e に設定すると、PHP のメモリマネージャーがシステムから確保したメモリの総量 (現在使われていないページも含む) を取得します。 memory_limit による制限は、この値に対して適用されます。 これは、オペレーティングシステムが PHP プロセスに与えたメモリの量ではあり ... で直接割り当てたメモリは、 real_usage が true の場合でも報告されません。 戻り値 メモリの量をバイト単位で返します。 例 例1 memory_get_usage() の例 <?php // これは単なる例にすぎません。 // 以下の数値はシステムによって変化します。 echo memory_get_usage ( ... ), "\n" ; // 36640 $a = str_repeat ( "Hello" , 4242 ); echo memory_get_usage (), "\n" ; // 57960 unset( $a ); echo memory_get_usage (), "\n" ; // 36744 ?> 参考 memory_get_peak_usage() - PHP ...
https://man.mtool.work/php/8.3/function.memory-get-usage.html
LuaSandbox::setMemoryLimit — Set the memory limit for the Lua environment | PHP... 7282
LuaSandbox::setMemoryLimit (PECL luasandbox >= 1.0.0) LuaSandbox::setMemoryLimit — Set the memory limit for the Lua environment 説明 public function LuaSandbox::setMemoryLimit ( int $limit ): void Sets the memory limit for the Lua environme ... nt. If this limit is exceeded, a LuaSandboxMemoryError exception is thrown. パラメータ limit Memory limit in bytes. 戻り値 値を返しません。 例 例1 Calling a Lua function <? ... php // create a new LuaSandbox $sandbox = new LuaSandbox (); // set a memory limit $sandbox -> setMemoryLimit ( 50 * 1024 * 1024 ); // Run Lua code $sandbox -> loadString ( 'local x = "x"; while true ... do x = x .. x; end' )-> call (); ?> 上の例の出力は、 たとえば以下のようになります。 PHP Fatal error: Uncaught LuaSandboxMemoryError: not enough memory 参考 LuaSandbox::getMemoryUsage() - Fetch the current memory usage of the Lua environment LuaSandb ...
https://man.mtool.work/php/8.3/luasandbox.setmemorylimit.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT