MCPcopy Index your code
hub / github.com/nodejs/node / disable

Method disable

lib/internal/perf/event_loop_delay.js:61–68  ·  view source on GitHub ↗

* @returns {boolean}

()

Source from the content-addressed store, hash-verified

59 * @returns {boolean}
60 */
61 disable() {
62 if (this[kEnabled] === undefined)
63 throw new ERR_INVALID_THIS('ELDHistogram');
64 if (!this[kEnabled]) return false;
65 this[kEnabled] = false;
66 this[kHandle].stop();
67 return true;
68 }
69
70 [SymbolDispose]() {
71 this.disable();

Callers 6

[SymbolDispose]Method · 0.95
disableFunction · 0.45
disableFunction · 0.45
disableFunction · 0.45
exitHandlerFunction · 0.45
toggleTraceCategoryStateFunction · 0.45

Calls 1

stopMethod · 0.65

Tested by

no test coverage detected