remove timestamp logging in profiler
This commit is contained in:
parent
82a9b348c0
commit
805539fdc7
1 changed files with 1 additions and 5 deletions
|
@ -196,7 +196,6 @@ module.exports = React.createClass({
|
||||||
this._scrollTimeout.restart();
|
this._scrollTimeout.restart();
|
||||||
this._saveScrollState();
|
this._saveScrollState();
|
||||||
this.updatePreventShrinking();
|
this.updatePreventShrinking();
|
||||||
console.timeStamp("onScroll:" + JSON.stringify({st: this._getScrollNode().scrollTop, mh: this._getMessagesHeight(), lh: this._getListHeight()}));
|
|
||||||
this.props.onScroll(ev);
|
this.props.onScroll(ev);
|
||||||
this.checkFillState();
|
this.checkFillState();
|
||||||
},
|
},
|
||||||
|
@ -638,9 +637,8 @@ module.exports = React.createClass({
|
||||||
const bottomDiff = newBottomOffset - scrollState.bottomOffset;
|
const bottomDiff = newBottomOffset - scrollState.bottomOffset;
|
||||||
this._bottomGrowth += bottomDiff;
|
this._bottomGrowth += bottomDiff;
|
||||||
scrollState.bottomOffset = newBottomOffset;
|
scrollState.bottomOffset = newBottomOffset;
|
||||||
console.timeStamp("restoreSavedScrollState:" + JSON.stringify({bd: bottomDiff, lh: this._getListHeight()}));
|
|
||||||
itemlist.style.height = `${this._getListHeight()}px`;
|
itemlist.style.height = `${this._getListHeight()}px`;
|
||||||
debuglog("balancing height because messages below viewport grew by "+bottomDiff+"px");
|
debuglog("balancing height because messages below viewport grew by", bottomDiff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this._heightUpdateInProgress) {
|
if (!this._heightUpdateInProgress) {
|
||||||
|
@ -678,7 +676,6 @@ module.exports = React.createClass({
|
||||||
itemlist.style.height = `${newHeight}px`;
|
itemlist.style.height = `${newHeight}px`;
|
||||||
sn.scrollTop = sn.scrollHeight;
|
sn.scrollTop = sn.scrollHeight;
|
||||||
debuglog("updateHeight to", newHeight);
|
debuglog("updateHeight to", newHeight);
|
||||||
console.timeStamp("updateHeight: to bottom");
|
|
||||||
} else if (scrollState.trackedScrollToken) {
|
} else if (scrollState.trackedScrollToken) {
|
||||||
const trackedNode = this._getTrackedNode();
|
const trackedNode = this._getTrackedNode();
|
||||||
// if the timeline has been reloaded
|
// if the timeline has been reloaded
|
||||||
|
@ -698,7 +695,6 @@ module.exports = React.createClass({
|
||||||
const topDiff = newTop - oldTop;
|
const topDiff = newTop - oldTop;
|
||||||
sn.scrollTop = preexistingScrollTop + topDiff;
|
sn.scrollTop = preexistingScrollTop + topDiff;
|
||||||
debuglog("updateHeight to", {newHeight, topDiff, preexistingScrollTop});
|
debuglog("updateHeight to", {newHeight, topDiff, preexistingScrollTop});
|
||||||
console.timeStamp("updateHeight:" + JSON.stringify({nh: newHeight, td: topDiff, st: preexistingScrollTop}));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue