PHP code example of danxill / php-meminfo-analyzer

1. Go to this page and download the library: Download danxill/php-meminfo-analyzer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

danxill / php-meminfo-analyzer example snippets


meminfo_dump(fopen('/tmp/my_dump_file.json', 'w'));

bash
$ bin/analyzer top-children [options] [--] <dump-file>

Arguments:
  dump-file             PHP Meminfo Dump File in JSON format

Options:
  -l, --limit[=LIMIT]   limit [default: 5]
bash
$ TEST_PHP_EXECUTABLE=$(which php) $(which php) run-tests.php -d extension=$PWD/modules/meminfo.so