MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / reset

Method reset

src/utils/PerformanceProfiler.ts:389–401  ·  view source on GitHub ↗
(name?: string)

Source from the content-addressed store, hash-verified

387 }
388
389 reset(name?: string): void {
390 if (!name) {
391 this.metrics.clear();
392 this.counters.clear();
393 this.gauges.clear();
394 return;
395 }
396
397 const metricName = this.getMetricName(name);
398 this.metrics.delete(metricName);
399 this.counters.delete(metricName);
400 this.gauges.delete(metricName);
401 }
402
403 destroy(): void {
404 this.reset();

Callers 1

destroyMethod · 0.95

Calls 3

getMetricNameMethod · 0.95
deleteMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected