Performance: Adding several variables for performance measuring.

This commit is contained in:
Michael - piratica.eu 2013-01-26 16:46:43 +01:00
commit 2c93067682
4 changed files with 61 additions and 31 deletions

View file

@ -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();