MCPcopy Index your code
hub / github.com/python/cpython / reset

Method reset

Doc/_static/profiling-sampling-visualization.js:1008–1017  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1006 }
1007
1008 reset() {
1009 this.currentTime = 0;
1010 this.eventIndex = 0;
1011 this.isPlaying = false;
1012 this.lastSampleTime = 0;
1013 this.stackViz.clear();
1014 this.codePanel.reset();
1015 this.samplingPanel.reset();
1016 this.controls.updateTimeDisplay(0, this.trace.duration);
1017 }
1018
1019 setSpeed(speed) {
1020 this.playbackSpeed = speed;

Callers 1

_createLayoutMethod · 0.95

Calls 3

updateTimeDisplayMethod · 0.80
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected