Skip to content
Snippets Groups Projects
Commit 4e308277 authored by godog's avatar godog Committed by agata
Browse files

remove apc stats reporting, not used anymore

parent ac799fb4
No related branches found
No related tags found
1 merge request!3Noblogs 5.4
<?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
*/
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment