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

Function _getHardwareInfo

lib/models/instrumentation.js:26–35  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

24_enableFSMonitorIfInstrumentationEnabled();
25
26function _getHardwareInfo(platform) {
27 const startTime = process.hrtime();
28
29 Object.getOwnPropertyNames(hwinfo).forEach((metric) => (platform[metric] = hwinfo[metric]()));
30
31 const collectionTime = process.hrtime(startTime);
32
33 // Convert from integer [seconds, nanoseconds] to floating-point milliseconds.
34 platform.collectionTime = collectionTime[0] * 10e3 + collectionTime[1] / 10e6;
35}
36
37class Instrumentation {
38 /**

Callers 4

_buildSummaryMethod · 0.85
_initSummaryMethod · 0.85
_commandSummaryMethod · 0.85
_shutdownSummaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…