diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-17 20:24:54 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-17 20:24:54 -0500 |
commit | 5f9cf59a784c9c9f9ba40c58ba990117e6a92a03 (patch) | |
tree | 0059502eb62ed040fa8252b38c42fab8d23d75be /pts-core/functions/pts-functions_system_parsing.php | |
parent | c525d5cbb58d92e9d97147f510cc6c6973e6ef51 (diff) | |
download | phoronix-test-suite-upstream-5f9cf59a784c9c9f9ba40c58ba990117e6a92a03.tar.gz phoronix-test-suite-upstream-5f9cf59a784c9c9f9ba40c58ba990117e6a92a03.tar.xz phoronix-test-suite-upstream-5f9cf59a784c9c9f9ba40c58ba990117e6a92a03.zip |
pts-core: Standardize hw_sys_* functions
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r-- | pts-core/functions/pts-functions_system_parsing.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php index e0c4aff..c99560e 100644 --- a/pts-core/functions/pts-functions_system_parsing.php +++ b/pts-core/functions/pts-functions_system_parsing.php @@ -688,6 +688,21 @@ function read_osx_system_profiler($data_type, $object, $multiple_objects = false return $value; } +function read_physical_memory_usage() +{ + // Amount of physical memory being used + return read_system_memory_usage("MEMORY"); +} +function read_total_memory_usage() +{ + // Amount of total (physical + SWAP) memory being used + return read_system_memory_usage("TOTAL"); +} +function read_swap_usage() +{ + // Amount of SWAP memory being used + return read_system_memory_usage("SWAP"); +} function read_dmidecode($type, $sub_type, $object, $find_once = false, $ignore = null) { // Read Linux dmidecode |