MCPcopy
hub / github.com/petkaantonov/bluebird / cb

Function cb

benchmark/performance.js:68–83  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

66 }
67
68 function cb (err) {
69 if (err && err.message !== "intentional failure") {
70 ++errs;
71 lastErr = err;
72 }
73 memMax = Math.max(memMax, process.memoryUsage().rss);
74 if (!--times) {
75 fn.end && fn.end();
76 done(null, {
77 time: Date.now() - start,
78 mem: (memMax - memStart)/1024/1024,
79 errors: errs,
80 lastErr: lastErr ? lastErr.stack : null
81 });
82 }
83 }
84}
85
86

Callers 15

catcher.jsFile · 0.85
dummy.jsFile · 0.85
props.jsFile · 0.85
regress.jsFile · 0.85
testFulfillSyncFunction · 0.85
testFulfillAsyncFunction · 0.85
testRejectSyncFunction · 0.85
testRejectAsyncFunction · 0.85
fFunction · 0.85
rejections.jsFile · 0.85
erroneusNodeFunction · 0.85
successNodeFunction · 0.85

Calls 1

doneFunction · 0.85

Tested by

no test coverage detected