mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Some more profiling helpers - timeline timestamp at start of rendering, consistently measure to end of app callback
This commit is contained in:
parent
5ae4da09cd
commit
9b4cd3e306
@ -267,6 +267,10 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
|
||||
var _load = function() {
|
||||
egw.debug("log", "Loading template...");
|
||||
if(console.timeStamp)
|
||||
{
|
||||
console.timeStamp("Begin rendering template");
|
||||
}
|
||||
|
||||
// Add into indexed list - do this before, so anything looking can find it,
|
||||
// even if it's not loaded
|
||||
@ -292,14 +296,6 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
{
|
||||
egw.window.console.groupEnd();
|
||||
}
|
||||
if(console.timelineEnd)
|
||||
{
|
||||
console.timelineEnd(_name);
|
||||
}
|
||||
if(console.profileEnd)
|
||||
{
|
||||
console.profileEnd(_name);
|
||||
}
|
||||
if(deferred.length > 0)
|
||||
{
|
||||
var still_deferred = 0;
|
||||
@ -329,6 +325,15 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
|
||||
$j(this.DOMContainer).trigger('load', this);
|
||||
|
||||
// Profiling
|
||||
if(console.timelineEnd)
|
||||
{
|
||||
console.timelineEnd(_name);
|
||||
}
|
||||
if(console.profileEnd)
|
||||
{
|
||||
console.profileEnd(_name);
|
||||
}
|
||||
var end_time = (new Date).getTime();
|
||||
var gen_time_div = $j('#divGenTime_'+appname);
|
||||
if (!gen_time_div.length) gen_time_div = $j('.pageGenTime');
|
||||
|
Loading…
Reference in New Issue
Block a user