Skip to content
Snippets Groups Projects
Select Git revision
  • b66a0060ee43ad0189a036e940cea55e824f3d7b
  • master default protected
  • renovate/github.com-andybalholm-brotli-1.x
  • renovate/bootstrap-5.x
  • renovate/purgecss-webpack-plugin-7.x
  • renovate/mini-css-extract-plugin-2.x
  • renovate/html-webpack-plugin-5.x
  • renovate/golang-1.x
  • renovate/css-loader-6.x
9 results

Dockerfile

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
     */
    ?>