MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / _totalTime

Method _totalTime

lib/models/watcher.js:103–113  ·  view source on GitHub ↗
(hash)

Source from the content-addressed store, hash-verified

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);

Callers 1

didChangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected