User Tools

Site Tools


uphp:functions:mem_usage

mem_usage

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

Write memory usage to standard output

Description

mem_usage ( )

This function will output a summary list showing how memory is currently being used

Parameters

None

Return Values

None

Example

<?
  mem_usage();
?>

Typical example output (the numbers will vary depending on the current state of the system):

DEVICES: 159
DEVICETYPE: 840
CRON: 0
GLOBAL: $_GLOBALS
GLOBALS: 3176
CACHE: 1078
TOTAL: 5253

See Also

freemem() - Return free memory space

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

Memory Limit Challenges to Programming the Wattmon

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