PageRenderTime 57ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/ext/apcinfo.php

https://github.com/kasep/PyMunin
PHP | 27 lines | 15 code | 4 blank | 8 comment | 0 complexity | 2d98a4ca0e43a541e99945d886038717 MD5 | raw file
Possible License(s): GPL-3.0
  1. <?php
  2. # __author__ = "Ali Onur Uyar"
  3. # __copyright__ = "Copyright 2011, Ali Onur Uyar"
  4. # __credits__ = []
  5. # __license__ = "GPL"
  6. # __version__ = "0.9"
  7. # __maintainer__ = "Ali Onur Uyar"
  8. # __email__ = "aouyar at gmail.com"
  9. # __status__ = "Development"
  10. header("Content-type: text/plain");
  11. $cache_sys = apc_cache_info('', true);
  12. $cache_user = apc_cache_info('user', true);
  13. $memory = apc_sma_info(true);
  14. foreach ($cache_sys as $key => $val) {
  15. printf("%s:%s:%s\n",'cache_sys', $key, $val);
  16. }
  17. foreach ($cache_user as $key => $val) {
  18. printf("%s:%s:%s\n",'cache_user', $key, $val);
  19. }
  20. foreach ($memory as $key => $val) {
  21. printf("%s:%s:%s\n",'memory', $key, $val);
  22. }
  23. ?>