mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
get timings for db-changed-time
This commit is contained in:
parent
91034d333b
commit
384d2b21fb
7
app.php
7
app.php
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user