mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Update ember-renderspeed slightly.
This commit is contained in:
parent
de3c657ea3
commit
c714b98595
@ -39,8 +39,6 @@ if ((typeof console !== 'undefined') && console.groupCollapsed) {
|
|||||||
@method log
|
@method log
|
||||||
**/
|
**/
|
||||||
ProfileNode.prototype.log = function(type) {
|
ProfileNode.prototype.log = function(type) {
|
||||||
if (this.time < 1) { return; }
|
|
||||||
|
|
||||||
var description = "";
|
var description = "";
|
||||||
if (this.payload) {
|
if (this.payload) {
|
||||||
if (this.payload.template) {
|
if (this.payload.template) {
|
||||||
@ -83,11 +81,11 @@ if ((typeof console !== 'undefined') && console.groupCollapsed) {
|
|||||||
profileNode.time = (timestamp - profileNode.start);
|
profileNode.time = (timestamp - profileNode.start);
|
||||||
this.depth = profileNode.parent;
|
this.depth = profileNode.parent;
|
||||||
|
|
||||||
if (this.depth && (profileNode.time > 1)) {
|
if (profileNode.time < 1) { return; }
|
||||||
this.depth.addChild(profileNode);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.depth) {
|
if (this.depth) {
|
||||||
|
this.depth.addChild(profileNode);
|
||||||
|
} else {
|
||||||
profileNode.log("Render");
|
profileNode.log("Render");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user