get timings for db-changed-time

This commit is contained in:
zebardy 2019-11-19 20:05:03 +00:00
parent 91034d333b
commit 384d2b21fb

View File

@ -1,4 +1,7 @@
<?php
$fp = fopen('/config/data/sql.log', 'a');
fwrite($fp, "!!!App starting up loading\n");
$time_start = microtime(true);
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
@ -112,10 +115,8 @@ $fp = fopen('/config/data/sql.log', 'a');
fwrite($fp, "!!!App starting run\n");
$run_time_start = microtime(true);
$app->run();
#fwrite($fp, "!!!App - Total dependency load time in seconds: " . $dep_load_time . "\n");
#fwrite($fp, "!!!App - Total app creation time in seconds: " . $app_creation_time . "\n");
fwrite($fp, "!!!App - Total run time in seconds: " . round((microtime(true) - $run_time_start),6) . "\n");
#fwrite($fp, "!!!App - Total execution time in seconds: " . round((microtime(true) - $time_start),6) . "\n");
fwrite($fp, "!!!App - Total execution time in seconds: " . round((microtime(true) - $time_start),6) . "\n");
#fwrite($fp, "!!!APP - ini: ".print_r(ini_get_all(),TRUE)."\n");
#fwrite($fp, "!!!APP - opcache status: ".print_r(opcache_get_status(),TRUE)."\n");
#fwrite($fp, "!!!APP - opcache config: ".print_r(opcache_get_configuration(),TRUE)."\n");