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

Function processorSpeed

lib/models/hardware-info.js:370–374  ·  view source on GitHub ↗

* Gets the speed of the host's processors. * * If more than one processor is found, the average of their speeds is taken. * * @private * @method processorSpeed * @return {Number} The average processor speed in MHz.

()

Source from the content-addressed store, hash-verified

368 * @return {Number} The average processor speed in MHz.
369 */
370 processorSpeed() {
371 const cpus = os.cpus();
372
373 return cpus.reduce((sum, cpu) => sum + cpu.speed, 0) / cpus.length;
374 },
375
376 /**
377 * Determines the time since the host was started, as from `os.uptime`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…