Below is a short description about the scripts.
Code: Select all
<?php
// Some code, which shouldn't affect to the test
include_once('included_file.php');
// Some more code, which shouldn't affect to the test
?>Code: Select all
<?php
// Some more code, which shouldn't affect to the test
// *** The test starts here. ***
$initial_memory = memory_get_usage();
//
// Here comes the part of the script,
// which peak memory usage I want to test!
//
$end_memory = memory_get_usage();
$peak_memory = mystery_to_me( ';)' );
// *** The test ends here. ***
// Some more code...
?>Is there any possibilities to get what I need?
Thanks!