//Get the number of SQL statements executed Information
$Result = $Profiler -> getQueryProfiles();
foreach ($Result as $key => $value)
{
//Output the executed statement
echo "The text content is:" . $value- >getQuery() . " ";
//Output the time it takes to run the statement
echo "The time spent is:" . $value->getElapsedSecs() . " ";
}
//Output the total time spent on all statements
echo "The total time spent is:" . $Profiler -> getTotalElapsedSecs();
?>
Copy code
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn