(hash)
| 101 | } |
| 102 | |
| 103 | _totalTime(hash) { |
| 104 | const sumNodes = (node, cb) => { |
| 105 | let total = 0; |
| 106 | node.visitPreOrder((node) => { |
| 107 | total += cb(node); |
| 108 | }); |
| 109 | return total; |
| 110 | }; |
| 111 | |
| 112 | return sumNodes(hash.graph.__heimdall__, (node) => node.stats.time.self); |
| 113 | } |
| 114 | |
| 115 | didError(error) { |
| 116 | logger.info('didError %o', error); |