Even more precise positionning of navigation timings in timeline

This commit is contained in:
Gaël Métais
2014-10-28 16:27:02 +01:00
parent ecef623cde
commit 39a9c04449
3 changed files with 8 additions and 10 deletions
@@ -99,6 +99,7 @@ exports.module = function(phantomas) {
function pushContext(data) {
if (depth === 0 || deepAnalysis) {
data.timestamp = Date.now() - responseEndTime;
data.loadingStep = phantomas.currentStep || '';
currentContext.addChild(data);
}
}
@@ -107,6 +108,7 @@ exports.module = function(phantomas) {
function enterContext(data) {
if (depth === 0 || deepAnalysis) {
data.timestamp = Date.now() - responseEndTime;
data.loadingStep = phantomas.currentStep || '';
currentContext = currentContext.addChild(data);
}
depth ++;