Commit 0a5ae2e9 authored by godog's avatar godog Committed by lechuck

remove apc stats reporting, not used anymore

parent 53814bd4
<?php
function print_stat($key, $value) {
echo "$key: $value\n";
}
$cache = apc_cache_info('', true);
foreach ($cache as $key => $value) {
if ($key === "memory_type" or $key === "locking_type")
continue;
print_stat($key, $value);
}
$mem = apc_sma_info(true);
foreach ($mem as $key => $value) {
print_stat($key, $value);
}
/*
* Significant data:
* $cache['num_entries'] => number files
* $cache['mem_size'] => size cached files
* $cache['num_hits'] => hits
* $cache['num_misses'] => misses
* $cache['expunges'] => cache full count
*
* $mem['num_seg'] * $mem['seg_size'] => memory size
* $mem['avail_mem'] => free memory
*/
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment