Basic usageBasic example on using memtrack extension: Beispiel #1 Creating large array in a function
<?phpRun the example with the following command: php -d memtrack.enabled=1 -d memtrack.soft_limit=1M -d memtrack.vm_limit=3M /tmp/example1.php Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: Warning: [memtrack] [pid 26177] user function foo() executed in /tmp/example1.php on line 10 allocated 4194304 bytes in /tmp/example1.php on line 0 Warning: [memtrack] [pid 26177] virtual memory usage on shutdown: 32911360 bytes in Unknown on line 0 |