(name, start, args, histogram)
| 35 | } = require('internal/util'); |
| 36 | |
| 37 | function processComplete(name, start, args, histogram) { |
| 38 | const duration = now() - start; |
| 39 | if (histogram !== undefined) |
| 40 | histogram.record(MathCeil(duration * 1e6)); |
| 41 | const entry = |
| 42 | createPerformanceNodeEntry( |
| 43 | name, |
| 44 | 'function', |
| 45 | start, |
| 46 | duration, |
| 47 | args); |
| 48 | |
| 49 | for (let n = 0; n < args.length; n++) |
| 50 | entry[n] = args[n]; |
| 51 | |
| 52 | enqueue(entry); |
| 53 | } |
| 54 | |
| 55 | function timerify(fn, options = kEmptyObject) { |
| 56 | validateFunction(fn, 'fn'); |
no test coverage detected
searching dependent graphs…