(name)
| 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)) { |
no test coverage detected