Collect total number of CPU cores and available RAM for each build.
Collect the total number of CPU cores and available RAM for each build as part of the system resource info. This is to know what kind of build machines that the developers are using. Bug: b/169453825 Test: m nothing and ran printproto on soong_metrics to validate the data. Change-Id: I8617bdb9490b37d7689abd27d349af1a651533db
This commit is contained in:
@@ -99,6 +99,9 @@ message MetricsBase {
|
||||
|
||||
// The hostname of the machine.
|
||||
optional string hostname = 24;
|
||||
|
||||
// The system resource information such as total physical memory.
|
||||
optional SystemResourceInfo system_resource_info = 25;
|
||||
}
|
||||
|
||||
message BuildConfig {
|
||||
@@ -109,6 +112,14 @@ message BuildConfig {
|
||||
optional bool force_use_goma = 3;
|
||||
}
|
||||
|
||||
message SystemResourceInfo {
|
||||
// The total physical memory in bytes.
|
||||
optional uint64 total_physical_memory = 1;
|
||||
|
||||
// The total of available cores for building
|
||||
optional int32 available_cpus = 2;
|
||||
}
|
||||
|
||||
message PerfInfo {
|
||||
// The description for the phase/action/part while the tool running.
|
||||
optional string desc = 1;
|
||||
|
Reference in New Issue
Block a user