“29021bccea0dc42d7d101004058438a9a4e693b1”上不存在“drivers/git@gitcode.net:openanolis/cloud-kernel.git”
提交 560780ba 编写于 作者: J Jason Park

remove _sleep method

上级 aa418ae2
...@@ -13,9 +13,6 @@ Tracer.prototype = { ...@@ -13,9 +13,6 @@ Tracer.prototype = {
this.capsule.lastData = data; this.capsule.lastData = data;
return false; return false;
}, },
_sleep: function (duration) {
tm.pushStep(this.capsule, {type: 'sleep', duration: duration});
},
_clear: function () { _clear: function () {
tm.pushStep(this.capsule, {type: 'clear'}); tm.pushStep(this.capsule, {type: 'clear'});
}, },
......
...@@ -120,17 +120,8 @@ TracerManager.prototype = { ...@@ -120,17 +120,8 @@ TracerManager.prototype = {
this.traceIndex = i; this.traceIndex = i;
var trace = this.traces[i]; var trace = this.traces[i];
var sleepDuration = 0;
trace.forEach(function (step) { trace.forEach(function (step) {
if (step.capsule == null) { step.capsule.tracer.processStep(step, options);
switch (step.type) {
case 'sleep':
sleepDuration = step.duration;
break;
}
} else {
step.capsule.tracer.processStep(step, options);
}
}); });
if (!options.virtual) { if (!options.virtual) {
this.command('refresh'); this.command('refresh');
...@@ -138,7 +129,7 @@ TracerManager.prototype = { ...@@ -138,7 +129,7 @@ TracerManager.prototype = {
if (this.pause) return; if (this.pause) return;
timer = setTimeout(function () { timer = setTimeout(function () {
tracer.step(i + 1, options); tracer.step(i + 1, options);
}, sleepDuration || this.interval); }, this.interval);
}, },
prevStep: function () { prevStep: function () {
$('#tab_trace .wrapper').empty(); $('#tab_trace .wrapper').empty();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部