@forzalabs/remora
Version:
A powerful CLI tool for seamless data translation.
18 lines (17 loc) • 558 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class ExecutorPerformance {
constructor() {
this.measure = (name, elapsedMS) => {
let tracker = this._operations[name];
if (!tracker) {
this._operations[name] = { elapsedMS: 0 };
tracker = this._operations[name];
}
tracker.elapsedMS += elapsedMS;
};
this.getOperations = () => this._operations;
this._operations = {};
}
}
exports.default = ExecutorPerformance;