MCPcopy Create free account
hub / github.com/microsoft/SandDance / _checkSampling

Method _checkSampling

docs/app/js/sanddance-app.js:54977–54988  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54975 return this;
54976 }
54977 _checkSampling() {
54978 if (this._samples === this.sampleSize) {
54979 this.lastSampleTime = this._time;
54980 this.lastSampleCount = this._count;
54981 this.count += this._count;
54982 this.time += this._time;
54983 this.samples += this._samples;
54984 this._time = 0;
54985 this._count = 0;
54986 this._samples = 0;
54987 }
54988 }
54989}
54990exports.default = Stat;
54991

Callers 4

addCountMethod · 0.95
subtractCountMethod · 0.95
addTimeMethod · 0.95
timeEndMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected