MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / sumNodes

Method sumNodes

lib/models/watcher.js:104–110  ·  view source on GitHub ↗
(node, cb)

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected