Performance: Adding several variables for performance measuring.
This commit is contained in:
parent
cc9ce39e3f
commit
2c93067682
4 changed files with 61 additions and 31 deletions
10
boot.php
10
boot.php
|
|
@ -355,7 +355,8 @@ if(! class_exists('App')) {
|
|||
public $identities;
|
||||
public $is_mobile;
|
||||
public $is_tablet;
|
||||
|
||||
public $performance = array();
|
||||
|
||||
public $nav_sel;
|
||||
|
||||
public $category;
|
||||
|
|
@ -403,7 +404,7 @@ if(! class_exists('App')) {
|
|||
|
||||
private $cached_profile_image;
|
||||
private $cached_profile_picdate;
|
||||
|
||||
|
||||
function __construct() {
|
||||
|
||||
global $default_timezone, $argv, $argc;
|
||||
|
|
@ -412,6 +413,11 @@ if(! class_exists('App')) {
|
|||
|
||||
date_default_timezone_set($this->timezone);
|
||||
|
||||
$this->performance["start"] = microtime(true);
|
||||
$this->performance["database"] = 0;
|
||||
$this->performance["network"] = 0;
|
||||
$this->performance["rendering"] = 0;
|
||||
|
||||
$this->config = array();
|
||||
$this->page = array();
|
||||
$this->pager= array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue