[ENHANCEMENT] Gather hardware information when creating instrumentation summaries #8616
+874
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While analyzing the speed of slow builds, we found it handy to have a number of hardware and hardware-related statistics which may affect build speed available.
This adds the following fields to
summary.platform
within the instrumentation files produced whenBROCCOLI_VIZ=1
:isUsingBattery
—true
if the build host is running off battery power,false
if it is not, ornull
if it cannot be determined.memorySwapUsed
— The amount of swap memory currently used by the host, in bytes, ornull
if it cannot be determined.memoryTotal
— The total amount of physical memory available on the build host.memoryUsed
— The "Resident Set Size" reported by the Node process.processorCount
— The number of logical processors on the build host.processorLoad
— An array of three values representing the build host's processor load, over a 1-, 5-, and 15- minute range, ornull
if it cannot be determined.processorSpeed
— The average speed of the build host's processor(s).These changes have been tested on Node 6.17.1, 8.16.0, 10.15.3, and 11.14.0. The following platforms have also been tested: