Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: metrics.proto |
| 3 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 4 | package soong_metrics_proto |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 5 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | math "math" |
| 10 | ) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 11 | |
| 12 | // Reference imports to suppress errors if they are not otherwise used. |
| 13 | var _ = proto.Marshal |
| 14 | var _ = fmt.Errorf |
| 15 | var _ = math.Inf |
| 16 | |
| 17 | // This is a compile-time assertion to ensure that this generated file |
| 18 | // is compatible with the proto package it is being compiled against. |
| 19 | // A compilation error at this line likely means your copy of the |
| 20 | // proto package needs to be updated. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 22 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 23 | type MetricsBase_BuildVariant int32 |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 24 | |
| 25 | const ( |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 26 | MetricsBase_USER MetricsBase_BuildVariant = 0 |
| 27 | MetricsBase_USERDEBUG MetricsBase_BuildVariant = 1 |
| 28 | MetricsBase_ENG MetricsBase_BuildVariant = 2 |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 29 | ) |
| 30 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 31 | var MetricsBase_BuildVariant_name = map[int32]string{ |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 32 | 0: "USER", |
| 33 | 1: "USERDEBUG", |
| 34 | 2: "ENG", |
| 35 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 36 | |
| 37 | var MetricsBase_BuildVariant_value = map[string]int32{ |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 38 | "USER": 0, |
| 39 | "USERDEBUG": 1, |
| 40 | "ENG": 2, |
| 41 | } |
| 42 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 43 | func (x MetricsBase_BuildVariant) Enum() *MetricsBase_BuildVariant { |
| 44 | p := new(MetricsBase_BuildVariant) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 45 | *p = x |
| 46 | return p |
| 47 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 48 | |
| 49 | func (x MetricsBase_BuildVariant) String() string { |
| 50 | return proto.EnumName(MetricsBase_BuildVariant_name, int32(x)) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 51 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 52 | |
| 53 | func (x *MetricsBase_BuildVariant) UnmarshalJSON(data []byte) error { |
| 54 | value, err := proto.UnmarshalJSONEnum(MetricsBase_BuildVariant_value, data, "MetricsBase_BuildVariant") |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 55 | if err != nil { |
| 56 | return err |
| 57 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 58 | *x = MetricsBase_BuildVariant(value) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 59 | return nil |
| 60 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 61 | |
| 62 | func (MetricsBase_BuildVariant) EnumDescriptor() ([]byte, []int) { |
| 63 | return fileDescriptor_6039342a2ba47b72, []int{0, 0} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 64 | } |
| 65 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 66 | type MetricsBase_Arch int32 |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 67 | |
| 68 | const ( |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 69 | MetricsBase_UNKNOWN MetricsBase_Arch = 0 |
| 70 | MetricsBase_ARM MetricsBase_Arch = 1 |
| 71 | MetricsBase_ARM64 MetricsBase_Arch = 2 |
| 72 | MetricsBase_X86 MetricsBase_Arch = 3 |
| 73 | MetricsBase_X86_64 MetricsBase_Arch = 4 |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 74 | ) |
| 75 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 76 | var MetricsBase_Arch_name = map[int32]string{ |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 77 | 0: "UNKNOWN", |
| 78 | 1: "ARM", |
| 79 | 2: "ARM64", |
| 80 | 3: "X86", |
| 81 | 4: "X86_64", |
| 82 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 83 | |
| 84 | var MetricsBase_Arch_value = map[string]int32{ |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 85 | "UNKNOWN": 0, |
| 86 | "ARM": 1, |
| 87 | "ARM64": 2, |
| 88 | "X86": 3, |
| 89 | "X86_64": 4, |
| 90 | } |
| 91 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 92 | func (x MetricsBase_Arch) Enum() *MetricsBase_Arch { |
| 93 | p := new(MetricsBase_Arch) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 94 | *p = x |
| 95 | return p |
| 96 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 97 | |
| 98 | func (x MetricsBase_Arch) String() string { |
| 99 | return proto.EnumName(MetricsBase_Arch_name, int32(x)) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 100 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 101 | |
| 102 | func (x *MetricsBase_Arch) UnmarshalJSON(data []byte) error { |
| 103 | value, err := proto.UnmarshalJSONEnum(MetricsBase_Arch_value, data, "MetricsBase_Arch") |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 104 | if err != nil { |
| 105 | return err |
| 106 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 107 | *x = MetricsBase_Arch(value) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 108 | return nil |
| 109 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 110 | |
| 111 | func (MetricsBase_Arch) EnumDescriptor() ([]byte, []int) { |
| 112 | return fileDescriptor_6039342a2ba47b72, []int{0, 1} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 113 | } |
| 114 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 115 | type ModuleTypeInfo_BuildSystem int32 |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 116 | |
| 117 | const ( |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 118 | ModuleTypeInfo_UNKNOWN ModuleTypeInfo_BuildSystem = 0 |
| 119 | ModuleTypeInfo_SOONG ModuleTypeInfo_BuildSystem = 1 |
| 120 | ModuleTypeInfo_MAKE ModuleTypeInfo_BuildSystem = 2 |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 121 | ) |
| 122 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 123 | var ModuleTypeInfo_BuildSystem_name = map[int32]string{ |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 124 | 0: "UNKNOWN", |
| 125 | 1: "SOONG", |
| 126 | 2: "MAKE", |
| 127 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 128 | |
| 129 | var ModuleTypeInfo_BuildSystem_value = map[string]int32{ |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 130 | "UNKNOWN": 0, |
| 131 | "SOONG": 1, |
| 132 | "MAKE": 2, |
| 133 | } |
| 134 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 135 | func (x ModuleTypeInfo_BuildSystem) Enum() *ModuleTypeInfo_BuildSystem { |
| 136 | p := new(ModuleTypeInfo_BuildSystem) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 137 | *p = x |
| 138 | return p |
| 139 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 140 | |
| 141 | func (x ModuleTypeInfo_BuildSystem) String() string { |
| 142 | return proto.EnumName(ModuleTypeInfo_BuildSystem_name, int32(x)) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 143 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 144 | |
| 145 | func (x *ModuleTypeInfo_BuildSystem) UnmarshalJSON(data []byte) error { |
| 146 | value, err := proto.UnmarshalJSONEnum(ModuleTypeInfo_BuildSystem_value, data, "ModuleTypeInfo_BuildSystem") |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 147 | if err != nil { |
| 148 | return err |
| 149 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 150 | *x = ModuleTypeInfo_BuildSystem(value) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 151 | return nil |
| 152 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 153 | |
| 154 | func (ModuleTypeInfo_BuildSystem) EnumDescriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 155 | return fileDescriptor_6039342a2ba47b72, []int{3, 0} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | type MetricsBase struct { |
| 159 | // Timestamp generated when the build starts. |
| 160 | BuildDateTimestamp *int64 `protobuf:"varint,1,opt,name=build_date_timestamp,json=buildDateTimestamp" json:"build_date_timestamp,omitempty"` |
| 161 | // It is usually used to specify the branch name [and release candidate]. |
| 162 | BuildId *string `protobuf:"bytes,2,opt,name=build_id,json=buildId" json:"build_id,omitempty"` |
| 163 | // The platform version codename, eg. P, Q, REL. |
| 164 | PlatformVersionCodename *string `protobuf:"bytes,3,opt,name=platform_version_codename,json=platformVersionCodename" json:"platform_version_codename,omitempty"` |
| 165 | // The target product information, eg. aosp_arm. |
| 166 | TargetProduct *string `protobuf:"bytes,4,opt,name=target_product,json=targetProduct" json:"target_product,omitempty"` |
| 167 | // The target build variant information, eg. eng. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 168 | TargetBuildVariant *MetricsBase_BuildVariant `protobuf:"varint,5,opt,name=target_build_variant,json=targetBuildVariant,enum=soong_build_metrics.MetricsBase_BuildVariant,def=2" json:"target_build_variant,omitempty"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 169 | // The target arch information, eg. arm. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 170 | TargetArch *MetricsBase_Arch `protobuf:"varint,6,opt,name=target_arch,json=targetArch,enum=soong_build_metrics.MetricsBase_Arch,def=0" json:"target_arch,omitempty"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 171 | // The target arch variant information, eg. armv7-a-neon. |
| 172 | TargetArchVariant *string `protobuf:"bytes,7,opt,name=target_arch_variant,json=targetArchVariant" json:"target_arch_variant,omitempty"` |
| 173 | // The target cpu variant information, eg. generic. |
| 174 | TargetCpuVariant *string `protobuf:"bytes,8,opt,name=target_cpu_variant,json=targetCpuVariant" json:"target_cpu_variant,omitempty"` |
| 175 | // The host arch information, eg. x86_64. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 176 | HostArch *MetricsBase_Arch `protobuf:"varint,9,opt,name=host_arch,json=hostArch,enum=soong_build_metrics.MetricsBase_Arch,def=0" json:"host_arch,omitempty"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 177 | // The host 2nd arch information, eg. x86. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 178 | Host_2NdArch *MetricsBase_Arch `protobuf:"varint,10,opt,name=host_2nd_arch,json=host2ndArch,enum=soong_build_metrics.MetricsBase_Arch,def=0" json:"host_2nd_arch,omitempty"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 179 | // The host os information, eg. linux. |
| 180 | HostOs *string `protobuf:"bytes,11,opt,name=host_os,json=hostOs" json:"host_os,omitempty"` |
| 181 | // The host os extra information, eg. Linux-4.17.0-3rodete2-amd64-x86_64-Debian-GNU. |
| 182 | HostOsExtra *string `protobuf:"bytes,12,opt,name=host_os_extra,json=hostOsExtra" json:"host_os_extra,omitempty"` |
| 183 | // The host cross os information, eg. windows. |
| 184 | HostCrossOs *string `protobuf:"bytes,13,opt,name=host_cross_os,json=hostCrossOs" json:"host_cross_os,omitempty"` |
| 185 | // The host cross arch information, eg. x86. |
| 186 | HostCrossArch *string `protobuf:"bytes,14,opt,name=host_cross_arch,json=hostCrossArch" json:"host_cross_arch,omitempty"` |
| 187 | // The host cross 2nd arch information, eg. x86_64. |
| 188 | HostCross_2NdArch *string `protobuf:"bytes,15,opt,name=host_cross_2nd_arch,json=hostCross2ndArch" json:"host_cross_2nd_arch,omitempty"` |
| 189 | // The directory for generated built artifacts installation, eg. out. |
| 190 | OutDir *string `protobuf:"bytes,16,opt,name=out_dir,json=outDir" json:"out_dir,omitempty"` |
| 191 | // The metrics for calling various tools (microfactory) before Soong_UI starts. |
| 192 | SetupTools []*PerfInfo `protobuf:"bytes,17,rep,name=setup_tools,json=setupTools" json:"setup_tools,omitempty"` |
| 193 | // The metrics for calling Kati by multiple times. |
| 194 | KatiRuns []*PerfInfo `protobuf:"bytes,18,rep,name=kati_runs,json=katiRuns" json:"kati_runs,omitempty"` |
| 195 | // The metrics for calling Soong. |
| 196 | SoongRuns []*PerfInfo `protobuf:"bytes,19,rep,name=soong_runs,json=soongRuns" json:"soong_runs,omitempty"` |
| 197 | // The metrics for calling Ninja. |
Colin Cross | 74cda72 | 2020-01-16 15:25:50 -0800 | [diff] [blame] | 198 | NinjaRuns []*PerfInfo `protobuf:"bytes,20,rep,name=ninja_runs,json=ninjaRuns" json:"ninja_runs,omitempty"` |
| 199 | // The metrics for the whole build |
Patrice Arruda | 4fb8adc | 2020-10-12 22:38:06 +0000 | [diff] [blame^] | 200 | Total *PerfInfo `protobuf:"bytes,21,opt,name=total" json:"total,omitempty"` |
| 201 | SoongBuildMetrics *SoongBuildMetrics `protobuf:"bytes,22,opt,name=soong_build_metrics,json=soongBuildMetrics" json:"soong_build_metrics,omitempty"` |
| 202 | BuildConfig *BuildConfig `protobuf:"bytes,23,opt,name=build_config,json=buildConfig" json:"build_config,omitempty"` |
| 203 | // The hostname of the machine |
| 204 | Hostname *string `protobuf:"bytes,24,opt,name=hostname" json:"hostname,omitempty"` |
| 205 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 206 | XXX_unrecognized []byte `json:"-"` |
| 207 | XXX_sizecache int32 `json:"-"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 208 | } |
| 209 | |
| 210 | func (m *MetricsBase) Reset() { *m = MetricsBase{} } |
| 211 | func (m *MetricsBase) String() string { return proto.CompactTextString(m) } |
| 212 | func (*MetricsBase) ProtoMessage() {} |
| 213 | func (*MetricsBase) Descriptor() ([]byte, []int) { |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 214 | return fileDescriptor_6039342a2ba47b72, []int{0} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 215 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 216 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 217 | func (m *MetricsBase) XXX_Unmarshal(b []byte) error { |
| 218 | return xxx_messageInfo_MetricsBase.Unmarshal(m, b) |
| 219 | } |
| 220 | func (m *MetricsBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 221 | return xxx_messageInfo_MetricsBase.Marshal(b, m, deterministic) |
| 222 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 223 | func (m *MetricsBase) XXX_Merge(src proto.Message) { |
| 224 | xxx_messageInfo_MetricsBase.Merge(m, src) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 225 | } |
| 226 | func (m *MetricsBase) XXX_Size() int { |
| 227 | return xxx_messageInfo_MetricsBase.Size(m) |
| 228 | } |
| 229 | func (m *MetricsBase) XXX_DiscardUnknown() { |
| 230 | xxx_messageInfo_MetricsBase.DiscardUnknown(m) |
| 231 | } |
| 232 | |
| 233 | var xxx_messageInfo_MetricsBase proto.InternalMessageInfo |
| 234 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 235 | const Default_MetricsBase_TargetBuildVariant MetricsBase_BuildVariant = MetricsBase_ENG |
| 236 | const Default_MetricsBase_TargetArch MetricsBase_Arch = MetricsBase_UNKNOWN |
| 237 | const Default_MetricsBase_HostArch MetricsBase_Arch = MetricsBase_UNKNOWN |
| 238 | const Default_MetricsBase_Host_2NdArch MetricsBase_Arch = MetricsBase_UNKNOWN |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 239 | |
| 240 | func (m *MetricsBase) GetBuildDateTimestamp() int64 { |
| 241 | if m != nil && m.BuildDateTimestamp != nil { |
| 242 | return *m.BuildDateTimestamp |
| 243 | } |
| 244 | return 0 |
| 245 | } |
| 246 | |
| 247 | func (m *MetricsBase) GetBuildId() string { |
| 248 | if m != nil && m.BuildId != nil { |
| 249 | return *m.BuildId |
| 250 | } |
| 251 | return "" |
| 252 | } |
| 253 | |
| 254 | func (m *MetricsBase) GetPlatformVersionCodename() string { |
| 255 | if m != nil && m.PlatformVersionCodename != nil { |
| 256 | return *m.PlatformVersionCodename |
| 257 | } |
| 258 | return "" |
| 259 | } |
| 260 | |
| 261 | func (m *MetricsBase) GetTargetProduct() string { |
| 262 | if m != nil && m.TargetProduct != nil { |
| 263 | return *m.TargetProduct |
| 264 | } |
| 265 | return "" |
| 266 | } |
| 267 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 268 | func (m *MetricsBase) GetTargetBuildVariant() MetricsBase_BuildVariant { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 269 | if m != nil && m.TargetBuildVariant != nil { |
| 270 | return *m.TargetBuildVariant |
| 271 | } |
| 272 | return Default_MetricsBase_TargetBuildVariant |
| 273 | } |
| 274 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 275 | func (m *MetricsBase) GetTargetArch() MetricsBase_Arch { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 276 | if m != nil && m.TargetArch != nil { |
| 277 | return *m.TargetArch |
| 278 | } |
| 279 | return Default_MetricsBase_TargetArch |
| 280 | } |
| 281 | |
| 282 | func (m *MetricsBase) GetTargetArchVariant() string { |
| 283 | if m != nil && m.TargetArchVariant != nil { |
| 284 | return *m.TargetArchVariant |
| 285 | } |
| 286 | return "" |
| 287 | } |
| 288 | |
| 289 | func (m *MetricsBase) GetTargetCpuVariant() string { |
| 290 | if m != nil && m.TargetCpuVariant != nil { |
| 291 | return *m.TargetCpuVariant |
| 292 | } |
| 293 | return "" |
| 294 | } |
| 295 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 296 | func (m *MetricsBase) GetHostArch() MetricsBase_Arch { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 297 | if m != nil && m.HostArch != nil { |
| 298 | return *m.HostArch |
| 299 | } |
| 300 | return Default_MetricsBase_HostArch |
| 301 | } |
| 302 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 303 | func (m *MetricsBase) GetHost_2NdArch() MetricsBase_Arch { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 304 | if m != nil && m.Host_2NdArch != nil { |
| 305 | return *m.Host_2NdArch |
| 306 | } |
| 307 | return Default_MetricsBase_Host_2NdArch |
| 308 | } |
| 309 | |
| 310 | func (m *MetricsBase) GetHostOs() string { |
| 311 | if m != nil && m.HostOs != nil { |
| 312 | return *m.HostOs |
| 313 | } |
| 314 | return "" |
| 315 | } |
| 316 | |
| 317 | func (m *MetricsBase) GetHostOsExtra() string { |
| 318 | if m != nil && m.HostOsExtra != nil { |
| 319 | return *m.HostOsExtra |
| 320 | } |
| 321 | return "" |
| 322 | } |
| 323 | |
| 324 | func (m *MetricsBase) GetHostCrossOs() string { |
| 325 | if m != nil && m.HostCrossOs != nil { |
| 326 | return *m.HostCrossOs |
| 327 | } |
| 328 | return "" |
| 329 | } |
| 330 | |
| 331 | func (m *MetricsBase) GetHostCrossArch() string { |
| 332 | if m != nil && m.HostCrossArch != nil { |
| 333 | return *m.HostCrossArch |
| 334 | } |
| 335 | return "" |
| 336 | } |
| 337 | |
| 338 | func (m *MetricsBase) GetHostCross_2NdArch() string { |
| 339 | if m != nil && m.HostCross_2NdArch != nil { |
| 340 | return *m.HostCross_2NdArch |
| 341 | } |
| 342 | return "" |
| 343 | } |
| 344 | |
| 345 | func (m *MetricsBase) GetOutDir() string { |
| 346 | if m != nil && m.OutDir != nil { |
| 347 | return *m.OutDir |
| 348 | } |
| 349 | return "" |
| 350 | } |
| 351 | |
| 352 | func (m *MetricsBase) GetSetupTools() []*PerfInfo { |
| 353 | if m != nil { |
| 354 | return m.SetupTools |
| 355 | } |
| 356 | return nil |
| 357 | } |
| 358 | |
| 359 | func (m *MetricsBase) GetKatiRuns() []*PerfInfo { |
| 360 | if m != nil { |
| 361 | return m.KatiRuns |
| 362 | } |
| 363 | return nil |
| 364 | } |
| 365 | |
| 366 | func (m *MetricsBase) GetSoongRuns() []*PerfInfo { |
| 367 | if m != nil { |
| 368 | return m.SoongRuns |
| 369 | } |
| 370 | return nil |
| 371 | } |
| 372 | |
| 373 | func (m *MetricsBase) GetNinjaRuns() []*PerfInfo { |
| 374 | if m != nil { |
| 375 | return m.NinjaRuns |
| 376 | } |
| 377 | return nil |
| 378 | } |
| 379 | |
Colin Cross | 74cda72 | 2020-01-16 15:25:50 -0800 | [diff] [blame] | 380 | func (m *MetricsBase) GetTotal() *PerfInfo { |
| 381 | if m != nil { |
| 382 | return m.Total |
| 383 | } |
| 384 | return nil |
| 385 | } |
| 386 | |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 387 | func (m *MetricsBase) GetSoongBuildMetrics() *SoongBuildMetrics { |
| 388 | if m != nil { |
| 389 | return m.SoongBuildMetrics |
| 390 | } |
| 391 | return nil |
| 392 | } |
| 393 | |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 394 | func (m *MetricsBase) GetBuildConfig() *BuildConfig { |
| 395 | if m != nil { |
| 396 | return m.BuildConfig |
| 397 | } |
| 398 | return nil |
| 399 | } |
| 400 | |
Patrice Arruda | 4fb8adc | 2020-10-12 22:38:06 +0000 | [diff] [blame^] | 401 | func (m *MetricsBase) GetHostname() string { |
| 402 | if m != nil && m.Hostname != nil { |
| 403 | return *m.Hostname |
| 404 | } |
| 405 | return "" |
| 406 | } |
| 407 | |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 408 | type BuildConfig struct { |
| 409 | UseGoma *bool `protobuf:"varint,1,opt,name=use_goma,json=useGoma" json:"use_goma,omitempty"` |
| 410 | UseRbe *bool `protobuf:"varint,2,opt,name=use_rbe,json=useRbe" json:"use_rbe,omitempty"` |
Patrice Arruda | c97d6dc | 2020-09-28 18:22:07 +0000 | [diff] [blame] | 411 | ForceUseGoma *bool `protobuf:"varint,3,opt,name=force_use_goma,json=forceUseGoma" json:"force_use_goma,omitempty"` |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 412 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 413 | XXX_unrecognized []byte `json:"-"` |
| 414 | XXX_sizecache int32 `json:"-"` |
| 415 | } |
| 416 | |
| 417 | func (m *BuildConfig) Reset() { *m = BuildConfig{} } |
| 418 | func (m *BuildConfig) String() string { return proto.CompactTextString(m) } |
| 419 | func (*BuildConfig) ProtoMessage() {} |
| 420 | func (*BuildConfig) Descriptor() ([]byte, []int) { |
| 421 | return fileDescriptor_6039342a2ba47b72, []int{1} |
| 422 | } |
| 423 | |
| 424 | func (m *BuildConfig) XXX_Unmarshal(b []byte) error { |
| 425 | return xxx_messageInfo_BuildConfig.Unmarshal(m, b) |
| 426 | } |
| 427 | func (m *BuildConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 428 | return xxx_messageInfo_BuildConfig.Marshal(b, m, deterministic) |
| 429 | } |
| 430 | func (m *BuildConfig) XXX_Merge(src proto.Message) { |
| 431 | xxx_messageInfo_BuildConfig.Merge(m, src) |
| 432 | } |
| 433 | func (m *BuildConfig) XXX_Size() int { |
| 434 | return xxx_messageInfo_BuildConfig.Size(m) |
| 435 | } |
| 436 | func (m *BuildConfig) XXX_DiscardUnknown() { |
| 437 | xxx_messageInfo_BuildConfig.DiscardUnknown(m) |
| 438 | } |
| 439 | |
| 440 | var xxx_messageInfo_BuildConfig proto.InternalMessageInfo |
| 441 | |
| 442 | func (m *BuildConfig) GetUseGoma() bool { |
| 443 | if m != nil && m.UseGoma != nil { |
| 444 | return *m.UseGoma |
| 445 | } |
| 446 | return false |
| 447 | } |
| 448 | |
| 449 | func (m *BuildConfig) GetUseRbe() bool { |
| 450 | if m != nil && m.UseRbe != nil { |
| 451 | return *m.UseRbe |
| 452 | } |
| 453 | return false |
| 454 | } |
| 455 | |
Patrice Arruda | c97d6dc | 2020-09-28 18:22:07 +0000 | [diff] [blame] | 456 | func (m *BuildConfig) GetForceUseGoma() bool { |
| 457 | if m != nil && m.ForceUseGoma != nil { |
| 458 | return *m.ForceUseGoma |
| 459 | } |
| 460 | return false |
| 461 | } |
| 462 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 463 | type PerfInfo struct { |
| 464 | // The description for the phase/action/part while the tool running. |
| 465 | Desc *string `protobuf:"bytes,1,opt,name=desc" json:"desc,omitempty"` |
| 466 | // The name for the running phase/action/part. |
| 467 | Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` |
| 468 | // The absolute start time. |
| 469 | // The number of nanoseconds elapsed since January 1, 1970 UTC. |
| 470 | StartTime *uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"` |
| 471 | // The real running time. |
| 472 | // The number of nanoseconds elapsed since start_time. |
| 473 | RealTime *uint64 `protobuf:"varint,4,opt,name=real_time,json=realTime" json:"real_time,omitempty"` |
| 474 | // The number of MB for memory use. |
| 475 | MemoryUse *uint64 `protobuf:"varint,5,opt,name=memory_use,json=memoryUse" json:"memory_use,omitempty"` |
| 476 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 477 | XXX_unrecognized []byte `json:"-"` |
| 478 | XXX_sizecache int32 `json:"-"` |
| 479 | } |
| 480 | |
| 481 | func (m *PerfInfo) Reset() { *m = PerfInfo{} } |
| 482 | func (m *PerfInfo) String() string { return proto.CompactTextString(m) } |
| 483 | func (*PerfInfo) ProtoMessage() {} |
| 484 | func (*PerfInfo) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 485 | return fileDescriptor_6039342a2ba47b72, []int{2} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 486 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 487 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 488 | func (m *PerfInfo) XXX_Unmarshal(b []byte) error { |
| 489 | return xxx_messageInfo_PerfInfo.Unmarshal(m, b) |
| 490 | } |
| 491 | func (m *PerfInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 492 | return xxx_messageInfo_PerfInfo.Marshal(b, m, deterministic) |
| 493 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 494 | func (m *PerfInfo) XXX_Merge(src proto.Message) { |
| 495 | xxx_messageInfo_PerfInfo.Merge(m, src) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 496 | } |
| 497 | func (m *PerfInfo) XXX_Size() int { |
| 498 | return xxx_messageInfo_PerfInfo.Size(m) |
| 499 | } |
| 500 | func (m *PerfInfo) XXX_DiscardUnknown() { |
| 501 | xxx_messageInfo_PerfInfo.DiscardUnknown(m) |
| 502 | } |
| 503 | |
| 504 | var xxx_messageInfo_PerfInfo proto.InternalMessageInfo |
| 505 | |
| 506 | func (m *PerfInfo) GetDesc() string { |
| 507 | if m != nil && m.Desc != nil { |
| 508 | return *m.Desc |
| 509 | } |
| 510 | return "" |
| 511 | } |
| 512 | |
| 513 | func (m *PerfInfo) GetName() string { |
| 514 | if m != nil && m.Name != nil { |
| 515 | return *m.Name |
| 516 | } |
| 517 | return "" |
| 518 | } |
| 519 | |
| 520 | func (m *PerfInfo) GetStartTime() uint64 { |
| 521 | if m != nil && m.StartTime != nil { |
| 522 | return *m.StartTime |
| 523 | } |
| 524 | return 0 |
| 525 | } |
| 526 | |
| 527 | func (m *PerfInfo) GetRealTime() uint64 { |
| 528 | if m != nil && m.RealTime != nil { |
| 529 | return *m.RealTime |
| 530 | } |
| 531 | return 0 |
| 532 | } |
| 533 | |
| 534 | func (m *PerfInfo) GetMemoryUse() uint64 { |
| 535 | if m != nil && m.MemoryUse != nil { |
| 536 | return *m.MemoryUse |
| 537 | } |
| 538 | return 0 |
| 539 | } |
| 540 | |
| 541 | type ModuleTypeInfo struct { |
| 542 | // The build system, eg. Soong or Make. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 543 | BuildSystem *ModuleTypeInfo_BuildSystem `protobuf:"varint,1,opt,name=build_system,json=buildSystem,enum=soong_build_metrics.ModuleTypeInfo_BuildSystem,def=0" json:"build_system,omitempty"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 544 | // The module type, eg. java_library, cc_binary, and etc. |
| 545 | ModuleType *string `protobuf:"bytes,2,opt,name=module_type,json=moduleType" json:"module_type,omitempty"` |
| 546 | // The number of logical modules. |
| 547 | NumOfModules *uint32 `protobuf:"varint,3,opt,name=num_of_modules,json=numOfModules" json:"num_of_modules,omitempty"` |
| 548 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 549 | XXX_unrecognized []byte `json:"-"` |
| 550 | XXX_sizecache int32 `json:"-"` |
| 551 | } |
| 552 | |
| 553 | func (m *ModuleTypeInfo) Reset() { *m = ModuleTypeInfo{} } |
| 554 | func (m *ModuleTypeInfo) String() string { return proto.CompactTextString(m) } |
| 555 | func (*ModuleTypeInfo) ProtoMessage() {} |
| 556 | func (*ModuleTypeInfo) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 557 | return fileDescriptor_6039342a2ba47b72, []int{3} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 558 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 559 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 560 | func (m *ModuleTypeInfo) XXX_Unmarshal(b []byte) error { |
| 561 | return xxx_messageInfo_ModuleTypeInfo.Unmarshal(m, b) |
| 562 | } |
| 563 | func (m *ModuleTypeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 564 | return xxx_messageInfo_ModuleTypeInfo.Marshal(b, m, deterministic) |
| 565 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 566 | func (m *ModuleTypeInfo) XXX_Merge(src proto.Message) { |
| 567 | xxx_messageInfo_ModuleTypeInfo.Merge(m, src) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 568 | } |
| 569 | func (m *ModuleTypeInfo) XXX_Size() int { |
| 570 | return xxx_messageInfo_ModuleTypeInfo.Size(m) |
| 571 | } |
| 572 | func (m *ModuleTypeInfo) XXX_DiscardUnknown() { |
| 573 | xxx_messageInfo_ModuleTypeInfo.DiscardUnknown(m) |
| 574 | } |
| 575 | |
| 576 | var xxx_messageInfo_ModuleTypeInfo proto.InternalMessageInfo |
| 577 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 578 | const Default_ModuleTypeInfo_BuildSystem ModuleTypeInfo_BuildSystem = ModuleTypeInfo_UNKNOWN |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 579 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 580 | func (m *ModuleTypeInfo) GetBuildSystem() ModuleTypeInfo_BuildSystem { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 581 | if m != nil && m.BuildSystem != nil { |
| 582 | return *m.BuildSystem |
| 583 | } |
| 584 | return Default_ModuleTypeInfo_BuildSystem |
| 585 | } |
| 586 | |
| 587 | func (m *ModuleTypeInfo) GetModuleType() string { |
| 588 | if m != nil && m.ModuleType != nil { |
| 589 | return *m.ModuleType |
| 590 | } |
| 591 | return "" |
| 592 | } |
| 593 | |
| 594 | func (m *ModuleTypeInfo) GetNumOfModules() uint32 { |
| 595 | if m != nil && m.NumOfModules != nil { |
| 596 | return *m.NumOfModules |
| 597 | } |
| 598 | return 0 |
| 599 | } |
| 600 | |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 601 | type CriticalUserJourneyMetrics struct { |
| 602 | // The name of a critical user journey test. |
| 603 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 604 | // The metrics produced when running the critical user journey test. |
| 605 | Metrics *MetricsBase `protobuf:"bytes,2,opt,name=metrics" json:"metrics,omitempty"` |
| 606 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 607 | XXX_unrecognized []byte `json:"-"` |
| 608 | XXX_sizecache int32 `json:"-"` |
| 609 | } |
| 610 | |
| 611 | func (m *CriticalUserJourneyMetrics) Reset() { *m = CriticalUserJourneyMetrics{} } |
| 612 | func (m *CriticalUserJourneyMetrics) String() string { return proto.CompactTextString(m) } |
| 613 | func (*CriticalUserJourneyMetrics) ProtoMessage() {} |
| 614 | func (*CriticalUserJourneyMetrics) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 615 | return fileDescriptor_6039342a2ba47b72, []int{4} |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 616 | } |
| 617 | |
| 618 | func (m *CriticalUserJourneyMetrics) XXX_Unmarshal(b []byte) error { |
| 619 | return xxx_messageInfo_CriticalUserJourneyMetrics.Unmarshal(m, b) |
| 620 | } |
| 621 | func (m *CriticalUserJourneyMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 622 | return xxx_messageInfo_CriticalUserJourneyMetrics.Marshal(b, m, deterministic) |
| 623 | } |
| 624 | func (m *CriticalUserJourneyMetrics) XXX_Merge(src proto.Message) { |
| 625 | xxx_messageInfo_CriticalUserJourneyMetrics.Merge(m, src) |
| 626 | } |
| 627 | func (m *CriticalUserJourneyMetrics) XXX_Size() int { |
| 628 | return xxx_messageInfo_CriticalUserJourneyMetrics.Size(m) |
| 629 | } |
| 630 | func (m *CriticalUserJourneyMetrics) XXX_DiscardUnknown() { |
| 631 | xxx_messageInfo_CriticalUserJourneyMetrics.DiscardUnknown(m) |
| 632 | } |
| 633 | |
| 634 | var xxx_messageInfo_CriticalUserJourneyMetrics proto.InternalMessageInfo |
| 635 | |
| 636 | func (m *CriticalUserJourneyMetrics) GetName() string { |
| 637 | if m != nil && m.Name != nil { |
| 638 | return *m.Name |
| 639 | } |
| 640 | return "" |
| 641 | } |
| 642 | |
| 643 | func (m *CriticalUserJourneyMetrics) GetMetrics() *MetricsBase { |
| 644 | if m != nil { |
| 645 | return m.Metrics |
| 646 | } |
| 647 | return nil |
| 648 | } |
| 649 | |
| 650 | type CriticalUserJourneysMetrics struct { |
| 651 | // A set of metrics from a run of the critical user journey tests. |
| 652 | Cujs []*CriticalUserJourneyMetrics `protobuf:"bytes,1,rep,name=cujs" json:"cujs,omitempty"` |
| 653 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 654 | XXX_unrecognized []byte `json:"-"` |
| 655 | XXX_sizecache int32 `json:"-"` |
| 656 | } |
| 657 | |
| 658 | func (m *CriticalUserJourneysMetrics) Reset() { *m = CriticalUserJourneysMetrics{} } |
| 659 | func (m *CriticalUserJourneysMetrics) String() string { return proto.CompactTextString(m) } |
| 660 | func (*CriticalUserJourneysMetrics) ProtoMessage() {} |
| 661 | func (*CriticalUserJourneysMetrics) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 662 | return fileDescriptor_6039342a2ba47b72, []int{5} |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 663 | } |
| 664 | |
| 665 | func (m *CriticalUserJourneysMetrics) XXX_Unmarshal(b []byte) error { |
| 666 | return xxx_messageInfo_CriticalUserJourneysMetrics.Unmarshal(m, b) |
| 667 | } |
| 668 | func (m *CriticalUserJourneysMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 669 | return xxx_messageInfo_CriticalUserJourneysMetrics.Marshal(b, m, deterministic) |
| 670 | } |
| 671 | func (m *CriticalUserJourneysMetrics) XXX_Merge(src proto.Message) { |
| 672 | xxx_messageInfo_CriticalUserJourneysMetrics.Merge(m, src) |
| 673 | } |
| 674 | func (m *CriticalUserJourneysMetrics) XXX_Size() int { |
| 675 | return xxx_messageInfo_CriticalUserJourneysMetrics.Size(m) |
| 676 | } |
| 677 | func (m *CriticalUserJourneysMetrics) XXX_DiscardUnknown() { |
| 678 | xxx_messageInfo_CriticalUserJourneysMetrics.DiscardUnknown(m) |
| 679 | } |
| 680 | |
| 681 | var xxx_messageInfo_CriticalUserJourneysMetrics proto.InternalMessageInfo |
| 682 | |
| 683 | func (m *CriticalUserJourneysMetrics) GetCujs() []*CriticalUserJourneyMetrics { |
| 684 | if m != nil { |
| 685 | return m.Cujs |
| 686 | } |
| 687 | return nil |
| 688 | } |
| 689 | |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 690 | type SoongBuildMetrics struct { |
| 691 | // The number of modules handled by soong_build. |
| 692 | Modules *uint32 `protobuf:"varint,1,opt,name=modules" json:"modules,omitempty"` |
| 693 | // The total number of variants handled by soong_build. |
| 694 | Variants *uint32 `protobuf:"varint,2,opt,name=variants" json:"variants,omitempty"` |
| 695 | // The total number of allocations in soong_build. |
| 696 | TotalAllocCount *uint64 `protobuf:"varint,3,opt,name=total_alloc_count,json=totalAllocCount" json:"total_alloc_count,omitempty"` |
| 697 | // The total size of allocations in soong_build in bytes. |
| 698 | TotalAllocSize *uint64 `protobuf:"varint,4,opt,name=total_alloc_size,json=totalAllocSize" json:"total_alloc_size,omitempty"` |
| 699 | // The approximate maximum size of the heap in soong_build in bytes. |
| 700 | MaxHeapSize *uint64 `protobuf:"varint,5,opt,name=max_heap_size,json=maxHeapSize" json:"max_heap_size,omitempty"` |
| 701 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 702 | XXX_unrecognized []byte `json:"-"` |
| 703 | XXX_sizecache int32 `json:"-"` |
| 704 | } |
| 705 | |
| 706 | func (m *SoongBuildMetrics) Reset() { *m = SoongBuildMetrics{} } |
| 707 | func (m *SoongBuildMetrics) String() string { return proto.CompactTextString(m) } |
| 708 | func (*SoongBuildMetrics) ProtoMessage() {} |
| 709 | func (*SoongBuildMetrics) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 710 | return fileDescriptor_6039342a2ba47b72, []int{6} |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 711 | } |
| 712 | |
| 713 | func (m *SoongBuildMetrics) XXX_Unmarshal(b []byte) error { |
| 714 | return xxx_messageInfo_SoongBuildMetrics.Unmarshal(m, b) |
| 715 | } |
| 716 | func (m *SoongBuildMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 717 | return xxx_messageInfo_SoongBuildMetrics.Marshal(b, m, deterministic) |
| 718 | } |
| 719 | func (m *SoongBuildMetrics) XXX_Merge(src proto.Message) { |
| 720 | xxx_messageInfo_SoongBuildMetrics.Merge(m, src) |
| 721 | } |
| 722 | func (m *SoongBuildMetrics) XXX_Size() int { |
| 723 | return xxx_messageInfo_SoongBuildMetrics.Size(m) |
| 724 | } |
| 725 | func (m *SoongBuildMetrics) XXX_DiscardUnknown() { |
| 726 | xxx_messageInfo_SoongBuildMetrics.DiscardUnknown(m) |
| 727 | } |
| 728 | |
| 729 | var xxx_messageInfo_SoongBuildMetrics proto.InternalMessageInfo |
| 730 | |
| 731 | func (m *SoongBuildMetrics) GetModules() uint32 { |
| 732 | if m != nil && m.Modules != nil { |
| 733 | return *m.Modules |
| 734 | } |
| 735 | return 0 |
| 736 | } |
| 737 | |
| 738 | func (m *SoongBuildMetrics) GetVariants() uint32 { |
| 739 | if m != nil && m.Variants != nil { |
| 740 | return *m.Variants |
| 741 | } |
| 742 | return 0 |
| 743 | } |
| 744 | |
| 745 | func (m *SoongBuildMetrics) GetTotalAllocCount() uint64 { |
| 746 | if m != nil && m.TotalAllocCount != nil { |
| 747 | return *m.TotalAllocCount |
| 748 | } |
| 749 | return 0 |
| 750 | } |
| 751 | |
| 752 | func (m *SoongBuildMetrics) GetTotalAllocSize() uint64 { |
| 753 | if m != nil && m.TotalAllocSize != nil { |
| 754 | return *m.TotalAllocSize |
| 755 | } |
| 756 | return 0 |
| 757 | } |
| 758 | |
| 759 | func (m *SoongBuildMetrics) GetMaxHeapSize() uint64 { |
| 760 | if m != nil && m.MaxHeapSize != nil { |
| 761 | return *m.MaxHeapSize |
| 762 | } |
| 763 | return 0 |
| 764 | } |
| 765 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 766 | func init() { |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 767 | proto.RegisterEnum("soong_build_metrics.MetricsBase_BuildVariant", MetricsBase_BuildVariant_name, MetricsBase_BuildVariant_value) |
| 768 | proto.RegisterEnum("soong_build_metrics.MetricsBase_Arch", MetricsBase_Arch_name, MetricsBase_Arch_value) |
| 769 | proto.RegisterEnum("soong_build_metrics.ModuleTypeInfo_BuildSystem", ModuleTypeInfo_BuildSystem_name, ModuleTypeInfo_BuildSystem_value) |
| 770 | proto.RegisterType((*MetricsBase)(nil), "soong_build_metrics.MetricsBase") |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 771 | proto.RegisterType((*BuildConfig)(nil), "soong_build_metrics.BuildConfig") |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 772 | proto.RegisterType((*PerfInfo)(nil), "soong_build_metrics.PerfInfo") |
| 773 | proto.RegisterType((*ModuleTypeInfo)(nil), "soong_build_metrics.ModuleTypeInfo") |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 774 | proto.RegisterType((*CriticalUserJourneyMetrics)(nil), "soong_build_metrics.CriticalUserJourneyMetrics") |
| 775 | proto.RegisterType((*CriticalUserJourneysMetrics)(nil), "soong_build_metrics.CriticalUserJourneysMetrics") |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 776 | proto.RegisterType((*SoongBuildMetrics)(nil), "soong_build_metrics.SoongBuildMetrics") |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 777 | } |
| 778 | |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 779 | func init() { |
| 780 | proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) |
| 781 | } |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 782 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 783 | var fileDescriptor_6039342a2ba47b72 = []byte{ |
Patrice Arruda | 4fb8adc | 2020-10-12 22:38:06 +0000 | [diff] [blame^] | 784 | // 1047 bytes of a gzipped FileDescriptorProto |
Patrice Arruda | c97d6dc | 2020-09-28 18:22:07 +0000 | [diff] [blame] | 785 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xef, 0x4e, 0x1b, 0x47, |
| 786 | 0x10, 0xcf, 0x61, 0x83, 0x7d, 0x73, 0xd8, 0x1c, 0x0b, 0x29, 0x97, 0x44, 0xa8, 0x96, 0xd5, 0x44, |
| 787 | 0xa8, 0x6a, 0x48, 0x44, 0x23, 0x14, 0xa1, 0xa8, 0x12, 0x18, 0x44, 0x53, 0x04, 0x8e, 0x16, 0x4c, |
| 788 | 0xa3, 0xf6, 0xc3, 0x69, 0x7d, 0xb7, 0x86, 0x4b, 0x7d, 0xb7, 0xd6, 0xee, 0x5e, 0x04, 0x79, 0x87, |
Patrice Arruda | 4fb8adc | 2020-10-12 22:38:06 +0000 | [diff] [blame^] | 789 | 0xbe, 0x40, 0x5f, 0xa7, 0xcf, 0xd2, 0xf7, 0xa8, 0x76, 0xf6, 0xce, 0x3e, 0x5a, 0xb7, 0x41, 0xf9, |
| 790 | 0xe6, 0x9d, 0xdf, 0x9f, 0x9d, 0x9d, 0x9d, 0x9d, 0x33, 0xb4, 0x52, 0xae, 0x65, 0x12, 0xa9, 0xed, |
| 791 | 0x89, 0x14, 0x5a, 0x90, 0x35, 0x25, 0x44, 0x76, 0x15, 0x0e, 0xf3, 0x64, 0x1c, 0x87, 0x05, 0xd4, |
| 792 | 0xfd, 0xc3, 0x03, 0xef, 0xd4, 0xfe, 0x3e, 0x60, 0x8a, 0x93, 0x97, 0xb0, 0x6e, 0x09, 0x31, 0xd3, |
| 793 | 0x3c, 0xd4, 0x49, 0xca, 0x95, 0x66, 0xe9, 0x24, 0x70, 0x3a, 0xce, 0x56, 0x8d, 0x12, 0xc4, 0x0e, |
| 794 | 0x99, 0xe6, 0x17, 0x25, 0x42, 0x1e, 0x41, 0xd3, 0x2a, 0x92, 0x38, 0x58, 0xe8, 0x38, 0x5b, 0x2e, |
| 795 | 0x6d, 0xe0, 0xfa, 0x6d, 0x4c, 0xf6, 0xe0, 0xd1, 0x64, 0xcc, 0xf4, 0x48, 0xc8, 0x34, 0xfc, 0xc8, |
| 796 | 0xa5, 0x4a, 0x44, 0x16, 0x46, 0x22, 0xe6, 0x19, 0x4b, 0x79, 0x50, 0x43, 0xee, 0x46, 0x49, 0xb8, |
| 797 | 0xb4, 0x78, 0xaf, 0x80, 0xc9, 0x53, 0x68, 0x6b, 0x26, 0xaf, 0xb8, 0x0e, 0x27, 0x52, 0xc4, 0x79, |
| 798 | 0xa4, 0x83, 0x3a, 0x0a, 0x5a, 0x36, 0xfa, 0xce, 0x06, 0x49, 0x0c, 0xeb, 0x05, 0xcd, 0x26, 0xf1, |
| 799 | 0x91, 0xc9, 0x84, 0x65, 0x3a, 0x58, 0xec, 0x38, 0x5b, 0xed, 0x9d, 0xe7, 0xdb, 0x73, 0xce, 0xbc, |
| 800 | 0x5d, 0x39, 0xef, 0xf6, 0x81, 0x41, 0x2e, 0xad, 0x68, 0xaf, 0x76, 0x74, 0x76, 0x4c, 0x89, 0xf5, |
| 801 | 0xab, 0x02, 0xa4, 0x0f, 0x5e, 0xb1, 0x0b, 0x93, 0xd1, 0x75, 0xb0, 0x84, 0xe6, 0x4f, 0x3f, 0x6b, |
| 802 | 0xbe, 0x2f, 0xa3, 0xeb, 0xbd, 0xc6, 0xe0, 0xec, 0xe4, 0xac, 0xff, 0xf3, 0x19, 0x05, 0x6b, 0x61, |
| 803 | 0x82, 0x64, 0x1b, 0xd6, 0x2a, 0x86, 0xd3, 0xac, 0x1b, 0x78, 0xc4, 0xd5, 0x19, 0xb1, 0x4c, 0xe0, |
| 804 | 0x3b, 0x28, 0xd2, 0x0a, 0xa3, 0x49, 0x3e, 0xa5, 0x37, 0x91, 0xee, 0x5b, 0xa4, 0x37, 0xc9, 0x4b, |
| 805 | 0xf6, 0x09, 0xb8, 0xd7, 0x42, 0x15, 0xc9, 0xba, 0x5f, 0x94, 0x6c, 0xd3, 0x18, 0x60, 0xaa, 0x14, |
| 806 | 0x5a, 0x68, 0xb6, 0x93, 0xc5, 0xd6, 0x10, 0xbe, 0xc8, 0xd0, 0x33, 0x26, 0x3b, 0x59, 0x8c, 0x9e, |
| 807 | 0x1b, 0xd0, 0x40, 0x4f, 0xa1, 0x02, 0x0f, 0xcf, 0xb0, 0x64, 0x96, 0x7d, 0x45, 0xba, 0xc5, 0x66, |
| 808 | 0x42, 0x85, 0xfc, 0x46, 0x4b, 0x16, 0x2c, 0x23, 0xec, 0x59, 0xf8, 0xc8, 0x84, 0xa6, 0x9c, 0x48, |
| 809 | 0x0a, 0xa5, 0x8c, 0x45, 0x6b, 0xc6, 0xe9, 0x99, 0x58, 0x5f, 0x91, 0x67, 0xb0, 0x52, 0xe1, 0x60, |
| 810 | 0xda, 0x6d, 0xdb, 0x3e, 0x53, 0x16, 0x26, 0xf2, 0x1c, 0xd6, 0x2a, 0xbc, 0xe9, 0x11, 0x57, 0x6c, |
| 811 | 0x61, 0xa7, 0xdc, 0x4a, 0xde, 0x22, 0xd7, 0x61, 0x9c, 0xc8, 0xc0, 0xb7, 0x79, 0x8b, 0x5c, 0x1f, |
| 812 | 0x26, 0x92, 0xfc, 0x00, 0x9e, 0xe2, 0x3a, 0x9f, 0x84, 0x5a, 0x88, 0xb1, 0x0a, 0x56, 0x3b, 0xb5, |
| 813 | 0x2d, 0x6f, 0x67, 0x73, 0x6e, 0x89, 0xde, 0x71, 0x39, 0x7a, 0x9b, 0x8d, 0x04, 0x05, 0x54, 0x5c, |
| 814 | 0x18, 0x01, 0xd9, 0x03, 0xf7, 0x37, 0xa6, 0x93, 0x50, 0xe6, 0x99, 0x0a, 0xc8, 0x7d, 0xd4, 0x4d, |
| 815 | 0xc3, 0xa7, 0x79, 0xa6, 0xc8, 0x1b, 0x00, 0xcb, 0x44, 0xf1, 0xda, 0x7d, 0xc4, 0x2e, 0xa2, 0xa5, |
| 816 | 0x3a, 0x4b, 0xb2, 0x0f, 0xcc, 0xaa, 0xd7, 0xef, 0xa5, 0x46, 0x01, 0xaa, 0xbf, 0x87, 0x45, 0x2d, |
| 817 | 0x34, 0x1b, 0x07, 0x0f, 0x3b, 0xce, 0xe7, 0x85, 0x96, 0x4b, 0x2e, 0x61, 0xde, 0x28, 0x0a, 0xbe, |
| 818 | 0x42, 0x8b, 0x67, 0x73, 0x2d, 0xce, 0x4d, 0x0c, 0x9f, 0x64, 0xd1, 0x61, 0x74, 0x55, 0xfd, 0x33, |
| 819 | 0x44, 0x7a, 0xb0, 0x6c, 0x55, 0x91, 0xc8, 0x46, 0xc9, 0x55, 0xb0, 0x81, 0x86, 0x9d, 0xb9, 0x86, |
| 820 | 0x28, 0xec, 0x21, 0x8f, 0x7a, 0xc3, 0xd9, 0x82, 0x3c, 0x06, 0x6c, 0x7d, 0x1c, 0x51, 0x01, 0xde, |
| 821 | 0xf1, 0x74, 0xdd, 0x7d, 0x09, 0xcb, 0x77, 0xc6, 0x42, 0x13, 0xea, 0x83, 0xf3, 0x23, 0xea, 0x3f, |
| 822 | 0x20, 0x2d, 0x70, 0xcd, 0xaf, 0xc3, 0xa3, 0x83, 0xc1, 0xb1, 0xef, 0x90, 0x06, 0x98, 0x51, 0xe2, |
| 823 | 0x2f, 0x74, 0xdf, 0x40, 0x1d, 0x1b, 0xc7, 0x83, 0xf2, 0x21, 0xf8, 0x0f, 0x0c, 0xba, 0x4f, 0x4f, |
| 824 | 0x7d, 0x87, 0xb8, 0xb0, 0xb8, 0x4f, 0x4f, 0x77, 0x5f, 0xf9, 0x0b, 0x26, 0xf6, 0xfe, 0xf5, 0xae, |
| 825 | 0x5f, 0x23, 0x00, 0x4b, 0xef, 0x5f, 0xef, 0x86, 0xbb, 0xaf, 0xfc, 0x7a, 0xf7, 0x0a, 0xbc, 0x4a, |
| 826 | 0x9e, 0x66, 0xd2, 0xe6, 0x8a, 0x87, 0x57, 0x22, 0x65, 0x38, 0x8f, 0x9b, 0xb4, 0x91, 0x2b, 0x7e, |
| 827 | 0x2c, 0x52, 0x66, 0x1a, 0xd3, 0x40, 0x72, 0xc8, 0x71, 0x06, 0x37, 0xe9, 0x52, 0xae, 0x38, 0x1d, |
| 828 | 0x72, 0xf2, 0x0d, 0xb4, 0x47, 0x42, 0x46, 0x3c, 0x9c, 0x2a, 0x6b, 0x88, 0x2f, 0x63, 0x74, 0x60, |
| 829 | 0xe5, 0xdd, 0xdf, 0x1d, 0x68, 0x96, 0xb7, 0x44, 0x08, 0xd4, 0x63, 0xae, 0x22, 0xdc, 0xc2, 0xa5, |
| 830 | 0xf8, 0xdb, 0xc4, 0xb0, 0x22, 0x76, 0xc0, 0xe3, 0x6f, 0xb2, 0x09, 0xa0, 0x34, 0x93, 0x1a, 0xbf, |
| 831 | 0x12, 0x68, 0x5b, 0xa7, 0x2e, 0x46, 0xcc, 0xc7, 0x81, 0x3c, 0x01, 0x57, 0x72, 0x36, 0xb6, 0x68, |
| 832 | 0x1d, 0xd1, 0xa6, 0x09, 0x20, 0xb8, 0x09, 0x90, 0xf2, 0x54, 0xc8, 0x5b, 0x93, 0x17, 0x0e, 0xeb, |
| 833 | 0x3a, 0x75, 0x6d, 0x64, 0xa0, 0x78, 0xf7, 0x2f, 0x07, 0xda, 0xa7, 0x22, 0xce, 0xc7, 0xfc, 0xe2, |
| 834 | 0x76, 0xc2, 0x31, 0xab, 0x5f, 0xcb, 0xcb, 0x55, 0xb7, 0x4a, 0xf3, 0x14, 0xb3, 0x6b, 0xef, 0xbc, |
| 835 | 0x98, 0x3f, 0x85, 0xee, 0x48, 0xed, 0x5d, 0x9f, 0xa3, 0xac, 0x32, 0x8f, 0x86, 0xb3, 0x28, 0xf9, |
| 836 | 0x1a, 0xbc, 0x14, 0x35, 0xa1, 0xbe, 0x9d, 0x94, 0xa7, 0x84, 0x74, 0x6a, 0x63, 0xca, 0x98, 0xe5, |
| 837 | 0x69, 0x28, 0x46, 0xa1, 0x0d, 0x2a, 0x3c, 0x6f, 0x8b, 0x2e, 0x67, 0x79, 0xda, 0x1f, 0xd9, 0xfd, |
| 838 | 0x54, 0xf7, 0x45, 0x71, 0x5f, 0x85, 0xeb, 0x9d, 0x4b, 0x77, 0x61, 0xf1, 0xbc, 0xdf, 0x3f, 0x33, |
| 839 | 0xdd, 0xd1, 0x84, 0xfa, 0xe9, 0xfe, 0xc9, 0x91, 0xbf, 0xd0, 0x1d, 0xc3, 0xe3, 0x9e, 0x4c, 0x74, |
| 840 | 0x12, 0xb1, 0xf1, 0x40, 0x71, 0xf9, 0x93, 0xc8, 0x65, 0xc6, 0x6f, 0xcb, 0x7e, 0x2e, 0x8b, 0xee, |
| 841 | 0x54, 0x8a, 0xbe, 0x07, 0x8d, 0xf2, 0xbd, 0x2c, 0xfc, 0x4f, 0x7b, 0x57, 0xe6, 0x30, 0x2d, 0x05, |
| 842 | 0xdd, 0x21, 0x3c, 0x99, 0xb3, 0x9b, 0x9a, 0x3d, 0x9f, 0x7a, 0x94, 0x7f, 0x50, 0x81, 0x83, 0x33, |
| 843 | 0x60, 0x7e, 0x65, 0xff, 0x3b, 0x5b, 0x8a, 0xe2, 0xee, 0x9f, 0x0e, 0xac, 0xfe, 0xeb, 0xb1, 0x92, |
| 844 | 0x00, 0x1a, 0x65, 0xdd, 0x1c, 0xac, 0x5b, 0xb9, 0x34, 0xcf, 0xad, 0xf8, 0x9a, 0xd9, 0x03, 0xb5, |
| 845 | 0xe8, 0x74, 0x4d, 0xbe, 0x85, 0x55, 0x1c, 0x18, 0x21, 0x1b, 0x8f, 0x45, 0x14, 0x46, 0x22, 0xcf, |
| 846 | 0x74, 0xd1, 0x67, 0x2b, 0x08, 0xec, 0x9b, 0x78, 0xcf, 0x84, 0xc9, 0x16, 0xf8, 0x55, 0xae, 0x4a, |
| 847 | 0x3e, 0x95, 0x4d, 0xd7, 0x9e, 0x51, 0xcf, 0x93, 0x4f, 0xdc, 0x7c, 0x3e, 0x52, 0x76, 0x13, 0x5e, |
| 848 | 0x73, 0x36, 0xb1, 0x34, 0xdb, 0x7d, 0x5e, 0xca, 0x6e, 0x7e, 0xe4, 0x6c, 0x62, 0x38, 0x07, 0x0f, |
| 849 | 0x7f, 0x29, 0x26, 0x54, 0x71, 0xee, 0x10, 0xff, 0x41, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xb8, |
| 850 | 0x9e, 0xa1, 0xd5, 0x51, 0x09, 0x00, 0x00, |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 851 | } |