MCPcopy Create free account
hub / github.com/nodejs/node / _stamp

Method _stamp

test/async-hooks/init-hooks.js:148–153  ·  view source on GitHub ↗
(h, hook)

Source from the content-addressed store, hash-verified

146 }
147
148 _stamp(h, hook) {
149 if (h == null) return;
150 h[hook] ??= [];
151 const time = process.hrtime(this._start);
152 h[hook].push((time[0] * 1e9) + time[1]);
153 }
154
155 _getActivity(uid, hook) {
156 const h = this._activities.get(uid);

Callers 5

_initMethod · 0.95
_beforeMethod · 0.95
_afterMethod · 0.95
_destroyMethod · 0.95
_promiseResolveMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected