User Tools

Site Tools


uphp:functions:stats

stats

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Return system statistics

Description

array stats ( )

Parameters

None

Return Values

An array of current system information containing the following key/value pairs:

KeyType
cron_script int
http_script int
heap_free int
heap_largest_freeint
heap_blocks int
memory_errors int

Example

<pre><?
  $arr=stats();
  print_r($arr);
?></pre>

Typical output for the above example:

[$arr] = Array (
(int) [cron_script] => 0
(int) [http_script] => 1
(int) [heap_free] => 44024
(int) [heap_largest_free] => 37328
(int) [heap_blocks] => 571
(int) [memory_errors] => 0
)

See Also

freemem() - Return free memory space

mem_dump() - Write the current memory map to /dump.txt

mem_usage() - Write memory usage to standard output

phpinfo() - Return information about the system

uphp/functions/stats.txt · Last modified: 2021/09/13 05:57 (external edit)