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

Method start

lib/models/instrumentation.js:241–258  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

239 }
240
241 start(name) {
242 if (!instrumentationEnabled(this.config)) {
243 return;
244 }
245
246 let instr = this._instrumentationFor(name);
247 this._heimdall = this._heimdall || require('heimdalljs');
248
249 if (instr.node) {
250 // don't leak nodes during build. We have already reported on this in the
251 // previous stopAndReport so no data is lost
252 instr.node.remove();
253 }
254
255 let token = this._heimdall.start({ name, emberCLI: true });
256 instr.token = token;
257 instr.node = this._heimdall.current;
258 }
259
260 stopAndReport(name) {
261 if (!instrumentationEnabled(this.config)) {

Callers 13

constructorMethod · 0.95
merge-trees.jsFile · 0.45
index.jsFile · 0.45
loadCommandsFunction · 0.45
loadTasksFunction · 0.45
runMethod · 0.45
addonCommandsMethod · 0.45
buildMethod · 0.45
cleanupMethod · 0.45
treeForFunction · 0.45

Calls 2

_instrumentationForMethod · 0.95
instrumentationEnabledFunction · 0.85

Tested by

no test coverage detected