Skip to content
Snippets Groups Projects
Select Git revision
  • a0879bcc577d8b14d9991b66abb509d5f1d785d2
  • noblogs default
  • noblogs-5.7.1
  • upstream
  • noblogs-5.7
  • noblogs-5.6new
  • upstream5.5.1
  • noblogs28dic
  • upstream28dic
  • noblogs-5.5.1
  • noblogs-5.4.2
  • noblogs-5.4_seconda
  • noblogs-5.4
  • noblogs-7c
  • wp5.2.3p3
  • mergedbconf
  • noblogs-5.7.1
  • noblogs.5.7.0p1
  • noblogs-5.7.0
  • noblogs-5.6p3
  • noblogs5.6p2
  • noblogs-5.6p1
  • noblogs-5.6
  • noblogs-5.4.2p1
  • noblogs-5.4.2
  • noblogs-5.4.1
  • noblogs-5.4
  • noblogs-p5.4
  • noblogs-5.3.2p2
  • noblogs-5.3.2p1
  • noblogs-5.3.2
  • noblogs-5.3
  • noblogs-5.2.3p4
  • noblogs-5.2.3p3
  • noblogs-5.2.3p2
  • noblogs-5.2.3p1
36 results

apc_stats_r2mon.php

Blame
  • apc_stats_r2mon.php 650 B
    <?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
     */
    ?>