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 |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [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"` |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 202 | BuildConfig *BuildConfig `protobuf:"bytes,23,opt,name=build_config,json=buildConfig" json:"build_config,omitempty"` |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 203 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 204 | XXX_unrecognized []byte `json:"-"` |
| 205 | XXX_sizecache int32 `json:"-"` |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 206 | } |
| 207 | |
| 208 | func (m *MetricsBase) Reset() { *m = MetricsBase{} } |
| 209 | func (m *MetricsBase) String() string { return proto.CompactTextString(m) } |
| 210 | func (*MetricsBase) ProtoMessage() {} |
| 211 | func (*MetricsBase) Descriptor() ([]byte, []int) { |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 212 | return fileDescriptor_6039342a2ba47b72, []int{0} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 213 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 214 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 215 | func (m *MetricsBase) XXX_Unmarshal(b []byte) error { |
| 216 | return xxx_messageInfo_MetricsBase.Unmarshal(m, b) |
| 217 | } |
| 218 | func (m *MetricsBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 219 | return xxx_messageInfo_MetricsBase.Marshal(b, m, deterministic) |
| 220 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 221 | func (m *MetricsBase) XXX_Merge(src proto.Message) { |
| 222 | xxx_messageInfo_MetricsBase.Merge(m, src) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 223 | } |
| 224 | func (m *MetricsBase) XXX_Size() int { |
| 225 | return xxx_messageInfo_MetricsBase.Size(m) |
| 226 | } |
| 227 | func (m *MetricsBase) XXX_DiscardUnknown() { |
| 228 | xxx_messageInfo_MetricsBase.DiscardUnknown(m) |
| 229 | } |
| 230 | |
| 231 | var xxx_messageInfo_MetricsBase proto.InternalMessageInfo |
| 232 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 233 | const Default_MetricsBase_TargetBuildVariant MetricsBase_BuildVariant = MetricsBase_ENG |
| 234 | const Default_MetricsBase_TargetArch MetricsBase_Arch = MetricsBase_UNKNOWN |
| 235 | const Default_MetricsBase_HostArch MetricsBase_Arch = MetricsBase_UNKNOWN |
| 236 | const Default_MetricsBase_Host_2NdArch MetricsBase_Arch = MetricsBase_UNKNOWN |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 237 | |
| 238 | func (m *MetricsBase) GetBuildDateTimestamp() int64 { |
| 239 | if m != nil && m.BuildDateTimestamp != nil { |
| 240 | return *m.BuildDateTimestamp |
| 241 | } |
| 242 | return 0 |
| 243 | } |
| 244 | |
| 245 | func (m *MetricsBase) GetBuildId() string { |
| 246 | if m != nil && m.BuildId != nil { |
| 247 | return *m.BuildId |
| 248 | } |
| 249 | return "" |
| 250 | } |
| 251 | |
| 252 | func (m *MetricsBase) GetPlatformVersionCodename() string { |
| 253 | if m != nil && m.PlatformVersionCodename != nil { |
| 254 | return *m.PlatformVersionCodename |
| 255 | } |
| 256 | return "" |
| 257 | } |
| 258 | |
| 259 | func (m *MetricsBase) GetTargetProduct() string { |
| 260 | if m != nil && m.TargetProduct != nil { |
| 261 | return *m.TargetProduct |
| 262 | } |
| 263 | return "" |
| 264 | } |
| 265 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 266 | func (m *MetricsBase) GetTargetBuildVariant() MetricsBase_BuildVariant { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 267 | if m != nil && m.TargetBuildVariant != nil { |
| 268 | return *m.TargetBuildVariant |
| 269 | } |
| 270 | return Default_MetricsBase_TargetBuildVariant |
| 271 | } |
| 272 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 273 | func (m *MetricsBase) GetTargetArch() MetricsBase_Arch { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 274 | if m != nil && m.TargetArch != nil { |
| 275 | return *m.TargetArch |
| 276 | } |
| 277 | return Default_MetricsBase_TargetArch |
| 278 | } |
| 279 | |
| 280 | func (m *MetricsBase) GetTargetArchVariant() string { |
| 281 | if m != nil && m.TargetArchVariant != nil { |
| 282 | return *m.TargetArchVariant |
| 283 | } |
| 284 | return "" |
| 285 | } |
| 286 | |
| 287 | func (m *MetricsBase) GetTargetCpuVariant() string { |
| 288 | if m != nil && m.TargetCpuVariant != nil { |
| 289 | return *m.TargetCpuVariant |
| 290 | } |
| 291 | return "" |
| 292 | } |
| 293 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 294 | func (m *MetricsBase) GetHostArch() MetricsBase_Arch { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 295 | if m != nil && m.HostArch != nil { |
| 296 | return *m.HostArch |
| 297 | } |
| 298 | return Default_MetricsBase_HostArch |
| 299 | } |
| 300 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 301 | func (m *MetricsBase) GetHost_2NdArch() MetricsBase_Arch { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 302 | if m != nil && m.Host_2NdArch != nil { |
| 303 | return *m.Host_2NdArch |
| 304 | } |
| 305 | return Default_MetricsBase_Host_2NdArch |
| 306 | } |
| 307 | |
| 308 | func (m *MetricsBase) GetHostOs() string { |
| 309 | if m != nil && m.HostOs != nil { |
| 310 | return *m.HostOs |
| 311 | } |
| 312 | return "" |
| 313 | } |
| 314 | |
| 315 | func (m *MetricsBase) GetHostOsExtra() string { |
| 316 | if m != nil && m.HostOsExtra != nil { |
| 317 | return *m.HostOsExtra |
| 318 | } |
| 319 | return "" |
| 320 | } |
| 321 | |
| 322 | func (m *MetricsBase) GetHostCrossOs() string { |
| 323 | if m != nil && m.HostCrossOs != nil { |
| 324 | return *m.HostCrossOs |
| 325 | } |
| 326 | return "" |
| 327 | } |
| 328 | |
| 329 | func (m *MetricsBase) GetHostCrossArch() string { |
| 330 | if m != nil && m.HostCrossArch != nil { |
| 331 | return *m.HostCrossArch |
| 332 | } |
| 333 | return "" |
| 334 | } |
| 335 | |
| 336 | func (m *MetricsBase) GetHostCross_2NdArch() string { |
| 337 | if m != nil && m.HostCross_2NdArch != nil { |
| 338 | return *m.HostCross_2NdArch |
| 339 | } |
| 340 | return "" |
| 341 | } |
| 342 | |
| 343 | func (m *MetricsBase) GetOutDir() string { |
| 344 | if m != nil && m.OutDir != nil { |
| 345 | return *m.OutDir |
| 346 | } |
| 347 | return "" |
| 348 | } |
| 349 | |
| 350 | func (m *MetricsBase) GetSetupTools() []*PerfInfo { |
| 351 | if m != nil { |
| 352 | return m.SetupTools |
| 353 | } |
| 354 | return nil |
| 355 | } |
| 356 | |
| 357 | func (m *MetricsBase) GetKatiRuns() []*PerfInfo { |
| 358 | if m != nil { |
| 359 | return m.KatiRuns |
| 360 | } |
| 361 | return nil |
| 362 | } |
| 363 | |
| 364 | func (m *MetricsBase) GetSoongRuns() []*PerfInfo { |
| 365 | if m != nil { |
| 366 | return m.SoongRuns |
| 367 | } |
| 368 | return nil |
| 369 | } |
| 370 | |
| 371 | func (m *MetricsBase) GetNinjaRuns() []*PerfInfo { |
| 372 | if m != nil { |
| 373 | return m.NinjaRuns |
| 374 | } |
| 375 | return nil |
| 376 | } |
| 377 | |
Colin Cross | 74cda72 | 2020-01-16 15:25:50 -0800 | [diff] [blame] | 378 | func (m *MetricsBase) GetTotal() *PerfInfo { |
| 379 | if m != nil { |
| 380 | return m.Total |
| 381 | } |
| 382 | return nil |
| 383 | } |
| 384 | |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 385 | func (m *MetricsBase) GetSoongBuildMetrics() *SoongBuildMetrics { |
| 386 | if m != nil { |
| 387 | return m.SoongBuildMetrics |
| 388 | } |
| 389 | return nil |
| 390 | } |
| 391 | |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 392 | func (m *MetricsBase) GetBuildConfig() *BuildConfig { |
| 393 | if m != nil { |
| 394 | return m.BuildConfig |
| 395 | } |
| 396 | return nil |
| 397 | } |
| 398 | |
| 399 | type BuildConfig struct { |
| 400 | UseGoma *bool `protobuf:"varint,1,opt,name=use_goma,json=useGoma" json:"use_goma,omitempty"` |
| 401 | UseRbe *bool `protobuf:"varint,2,opt,name=use_rbe,json=useRbe" json:"use_rbe,omitempty"` |
| 402 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 403 | XXX_unrecognized []byte `json:"-"` |
| 404 | XXX_sizecache int32 `json:"-"` |
| 405 | } |
| 406 | |
| 407 | func (m *BuildConfig) Reset() { *m = BuildConfig{} } |
| 408 | func (m *BuildConfig) String() string { return proto.CompactTextString(m) } |
| 409 | func (*BuildConfig) ProtoMessage() {} |
| 410 | func (*BuildConfig) Descriptor() ([]byte, []int) { |
| 411 | return fileDescriptor_6039342a2ba47b72, []int{1} |
| 412 | } |
| 413 | |
| 414 | func (m *BuildConfig) XXX_Unmarshal(b []byte) error { |
| 415 | return xxx_messageInfo_BuildConfig.Unmarshal(m, b) |
| 416 | } |
| 417 | func (m *BuildConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 418 | return xxx_messageInfo_BuildConfig.Marshal(b, m, deterministic) |
| 419 | } |
| 420 | func (m *BuildConfig) XXX_Merge(src proto.Message) { |
| 421 | xxx_messageInfo_BuildConfig.Merge(m, src) |
| 422 | } |
| 423 | func (m *BuildConfig) XXX_Size() int { |
| 424 | return xxx_messageInfo_BuildConfig.Size(m) |
| 425 | } |
| 426 | func (m *BuildConfig) XXX_DiscardUnknown() { |
| 427 | xxx_messageInfo_BuildConfig.DiscardUnknown(m) |
| 428 | } |
| 429 | |
| 430 | var xxx_messageInfo_BuildConfig proto.InternalMessageInfo |
| 431 | |
| 432 | func (m *BuildConfig) GetUseGoma() bool { |
| 433 | if m != nil && m.UseGoma != nil { |
| 434 | return *m.UseGoma |
| 435 | } |
| 436 | return false |
| 437 | } |
| 438 | |
| 439 | func (m *BuildConfig) GetUseRbe() bool { |
| 440 | if m != nil && m.UseRbe != nil { |
| 441 | return *m.UseRbe |
| 442 | } |
| 443 | return false |
| 444 | } |
| 445 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 446 | type PerfInfo struct { |
| 447 | // The description for the phase/action/part while the tool running. |
| 448 | Desc *string `protobuf:"bytes,1,opt,name=desc" json:"desc,omitempty"` |
| 449 | // The name for the running phase/action/part. |
| 450 | Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` |
| 451 | // The absolute start time. |
| 452 | // The number of nanoseconds elapsed since January 1, 1970 UTC. |
| 453 | StartTime *uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"` |
| 454 | // The real running time. |
| 455 | // The number of nanoseconds elapsed since start_time. |
| 456 | RealTime *uint64 `protobuf:"varint,4,opt,name=real_time,json=realTime" json:"real_time,omitempty"` |
| 457 | // The number of MB for memory use. |
| 458 | MemoryUse *uint64 `protobuf:"varint,5,opt,name=memory_use,json=memoryUse" json:"memory_use,omitempty"` |
| 459 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 460 | XXX_unrecognized []byte `json:"-"` |
| 461 | XXX_sizecache int32 `json:"-"` |
| 462 | } |
| 463 | |
| 464 | func (m *PerfInfo) Reset() { *m = PerfInfo{} } |
| 465 | func (m *PerfInfo) String() string { return proto.CompactTextString(m) } |
| 466 | func (*PerfInfo) ProtoMessage() {} |
| 467 | func (*PerfInfo) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 468 | return fileDescriptor_6039342a2ba47b72, []int{2} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 469 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 470 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 471 | func (m *PerfInfo) XXX_Unmarshal(b []byte) error { |
| 472 | return xxx_messageInfo_PerfInfo.Unmarshal(m, b) |
| 473 | } |
| 474 | func (m *PerfInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 475 | return xxx_messageInfo_PerfInfo.Marshal(b, m, deterministic) |
| 476 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 477 | func (m *PerfInfo) XXX_Merge(src proto.Message) { |
| 478 | xxx_messageInfo_PerfInfo.Merge(m, src) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 479 | } |
| 480 | func (m *PerfInfo) XXX_Size() int { |
| 481 | return xxx_messageInfo_PerfInfo.Size(m) |
| 482 | } |
| 483 | func (m *PerfInfo) XXX_DiscardUnknown() { |
| 484 | xxx_messageInfo_PerfInfo.DiscardUnknown(m) |
| 485 | } |
| 486 | |
| 487 | var xxx_messageInfo_PerfInfo proto.InternalMessageInfo |
| 488 | |
| 489 | func (m *PerfInfo) GetDesc() string { |
| 490 | if m != nil && m.Desc != nil { |
| 491 | return *m.Desc |
| 492 | } |
| 493 | return "" |
| 494 | } |
| 495 | |
| 496 | func (m *PerfInfo) GetName() string { |
| 497 | if m != nil && m.Name != nil { |
| 498 | return *m.Name |
| 499 | } |
| 500 | return "" |
| 501 | } |
| 502 | |
| 503 | func (m *PerfInfo) GetStartTime() uint64 { |
| 504 | if m != nil && m.StartTime != nil { |
| 505 | return *m.StartTime |
| 506 | } |
| 507 | return 0 |
| 508 | } |
| 509 | |
| 510 | func (m *PerfInfo) GetRealTime() uint64 { |
| 511 | if m != nil && m.RealTime != nil { |
| 512 | return *m.RealTime |
| 513 | } |
| 514 | return 0 |
| 515 | } |
| 516 | |
| 517 | func (m *PerfInfo) GetMemoryUse() uint64 { |
| 518 | if m != nil && m.MemoryUse != nil { |
| 519 | return *m.MemoryUse |
| 520 | } |
| 521 | return 0 |
| 522 | } |
| 523 | |
| 524 | type ModuleTypeInfo struct { |
| 525 | // The build system, eg. Soong or Make. |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 526 | 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] | 527 | // The module type, eg. java_library, cc_binary, and etc. |
| 528 | ModuleType *string `protobuf:"bytes,2,opt,name=module_type,json=moduleType" json:"module_type,omitempty"` |
| 529 | // The number of logical modules. |
| 530 | NumOfModules *uint32 `protobuf:"varint,3,opt,name=num_of_modules,json=numOfModules" json:"num_of_modules,omitempty"` |
| 531 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 532 | XXX_unrecognized []byte `json:"-"` |
| 533 | XXX_sizecache int32 `json:"-"` |
| 534 | } |
| 535 | |
| 536 | func (m *ModuleTypeInfo) Reset() { *m = ModuleTypeInfo{} } |
| 537 | func (m *ModuleTypeInfo) String() string { return proto.CompactTextString(m) } |
| 538 | func (*ModuleTypeInfo) ProtoMessage() {} |
| 539 | func (*ModuleTypeInfo) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 540 | return fileDescriptor_6039342a2ba47b72, []int{3} |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 541 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 542 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 543 | func (m *ModuleTypeInfo) XXX_Unmarshal(b []byte) error { |
| 544 | return xxx_messageInfo_ModuleTypeInfo.Unmarshal(m, b) |
| 545 | } |
| 546 | func (m *ModuleTypeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 547 | return xxx_messageInfo_ModuleTypeInfo.Marshal(b, m, deterministic) |
| 548 | } |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 549 | func (m *ModuleTypeInfo) XXX_Merge(src proto.Message) { |
| 550 | xxx_messageInfo_ModuleTypeInfo.Merge(m, src) |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 551 | } |
| 552 | func (m *ModuleTypeInfo) XXX_Size() int { |
| 553 | return xxx_messageInfo_ModuleTypeInfo.Size(m) |
| 554 | } |
| 555 | func (m *ModuleTypeInfo) XXX_DiscardUnknown() { |
| 556 | xxx_messageInfo_ModuleTypeInfo.DiscardUnknown(m) |
| 557 | } |
| 558 | |
| 559 | var xxx_messageInfo_ModuleTypeInfo proto.InternalMessageInfo |
| 560 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 561 | const Default_ModuleTypeInfo_BuildSystem ModuleTypeInfo_BuildSystem = ModuleTypeInfo_UNKNOWN |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 562 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 563 | func (m *ModuleTypeInfo) GetBuildSystem() ModuleTypeInfo_BuildSystem { |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 564 | if m != nil && m.BuildSystem != nil { |
| 565 | return *m.BuildSystem |
| 566 | } |
| 567 | return Default_ModuleTypeInfo_BuildSystem |
| 568 | } |
| 569 | |
| 570 | func (m *ModuleTypeInfo) GetModuleType() string { |
| 571 | if m != nil && m.ModuleType != nil { |
| 572 | return *m.ModuleType |
| 573 | } |
| 574 | return "" |
| 575 | } |
| 576 | |
| 577 | func (m *ModuleTypeInfo) GetNumOfModules() uint32 { |
| 578 | if m != nil && m.NumOfModules != nil { |
| 579 | return *m.NumOfModules |
| 580 | } |
| 581 | return 0 |
| 582 | } |
| 583 | |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 584 | type CriticalUserJourneyMetrics struct { |
| 585 | // The name of a critical user journey test. |
| 586 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 587 | // The metrics produced when running the critical user journey test. |
| 588 | Metrics *MetricsBase `protobuf:"bytes,2,opt,name=metrics" json:"metrics,omitempty"` |
| 589 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 590 | XXX_unrecognized []byte `json:"-"` |
| 591 | XXX_sizecache int32 `json:"-"` |
| 592 | } |
| 593 | |
| 594 | func (m *CriticalUserJourneyMetrics) Reset() { *m = CriticalUserJourneyMetrics{} } |
| 595 | func (m *CriticalUserJourneyMetrics) String() string { return proto.CompactTextString(m) } |
| 596 | func (*CriticalUserJourneyMetrics) ProtoMessage() {} |
| 597 | func (*CriticalUserJourneyMetrics) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 598 | return fileDescriptor_6039342a2ba47b72, []int{4} |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 599 | } |
| 600 | |
| 601 | func (m *CriticalUserJourneyMetrics) XXX_Unmarshal(b []byte) error { |
| 602 | return xxx_messageInfo_CriticalUserJourneyMetrics.Unmarshal(m, b) |
| 603 | } |
| 604 | func (m *CriticalUserJourneyMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 605 | return xxx_messageInfo_CriticalUserJourneyMetrics.Marshal(b, m, deterministic) |
| 606 | } |
| 607 | func (m *CriticalUserJourneyMetrics) XXX_Merge(src proto.Message) { |
| 608 | xxx_messageInfo_CriticalUserJourneyMetrics.Merge(m, src) |
| 609 | } |
| 610 | func (m *CriticalUserJourneyMetrics) XXX_Size() int { |
| 611 | return xxx_messageInfo_CriticalUserJourneyMetrics.Size(m) |
| 612 | } |
| 613 | func (m *CriticalUserJourneyMetrics) XXX_DiscardUnknown() { |
| 614 | xxx_messageInfo_CriticalUserJourneyMetrics.DiscardUnknown(m) |
| 615 | } |
| 616 | |
| 617 | var xxx_messageInfo_CriticalUserJourneyMetrics proto.InternalMessageInfo |
| 618 | |
| 619 | func (m *CriticalUserJourneyMetrics) GetName() string { |
| 620 | if m != nil && m.Name != nil { |
| 621 | return *m.Name |
| 622 | } |
| 623 | return "" |
| 624 | } |
| 625 | |
| 626 | func (m *CriticalUserJourneyMetrics) GetMetrics() *MetricsBase { |
| 627 | if m != nil { |
| 628 | return m.Metrics |
| 629 | } |
| 630 | return nil |
| 631 | } |
| 632 | |
| 633 | type CriticalUserJourneysMetrics struct { |
| 634 | // A set of metrics from a run of the critical user journey tests. |
| 635 | Cujs []*CriticalUserJourneyMetrics `protobuf:"bytes,1,rep,name=cujs" json:"cujs,omitempty"` |
| 636 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 637 | XXX_unrecognized []byte `json:"-"` |
| 638 | XXX_sizecache int32 `json:"-"` |
| 639 | } |
| 640 | |
| 641 | func (m *CriticalUserJourneysMetrics) Reset() { *m = CriticalUserJourneysMetrics{} } |
| 642 | func (m *CriticalUserJourneysMetrics) String() string { return proto.CompactTextString(m) } |
| 643 | func (*CriticalUserJourneysMetrics) ProtoMessage() {} |
| 644 | func (*CriticalUserJourneysMetrics) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 645 | return fileDescriptor_6039342a2ba47b72, []int{5} |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 646 | } |
| 647 | |
| 648 | func (m *CriticalUserJourneysMetrics) XXX_Unmarshal(b []byte) error { |
| 649 | return xxx_messageInfo_CriticalUserJourneysMetrics.Unmarshal(m, b) |
| 650 | } |
| 651 | func (m *CriticalUserJourneysMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 652 | return xxx_messageInfo_CriticalUserJourneysMetrics.Marshal(b, m, deterministic) |
| 653 | } |
| 654 | func (m *CriticalUserJourneysMetrics) XXX_Merge(src proto.Message) { |
| 655 | xxx_messageInfo_CriticalUserJourneysMetrics.Merge(m, src) |
| 656 | } |
| 657 | func (m *CriticalUserJourneysMetrics) XXX_Size() int { |
| 658 | return xxx_messageInfo_CriticalUserJourneysMetrics.Size(m) |
| 659 | } |
| 660 | func (m *CriticalUserJourneysMetrics) XXX_DiscardUnknown() { |
| 661 | xxx_messageInfo_CriticalUserJourneysMetrics.DiscardUnknown(m) |
| 662 | } |
| 663 | |
| 664 | var xxx_messageInfo_CriticalUserJourneysMetrics proto.InternalMessageInfo |
| 665 | |
| 666 | func (m *CriticalUserJourneysMetrics) GetCujs() []*CriticalUserJourneyMetrics { |
| 667 | if m != nil { |
| 668 | return m.Cujs |
| 669 | } |
| 670 | return nil |
| 671 | } |
| 672 | |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 673 | type SoongBuildMetrics struct { |
| 674 | // The number of modules handled by soong_build. |
| 675 | Modules *uint32 `protobuf:"varint,1,opt,name=modules" json:"modules,omitempty"` |
| 676 | // The total number of variants handled by soong_build. |
| 677 | Variants *uint32 `protobuf:"varint,2,opt,name=variants" json:"variants,omitempty"` |
| 678 | // The total number of allocations in soong_build. |
| 679 | TotalAllocCount *uint64 `protobuf:"varint,3,opt,name=total_alloc_count,json=totalAllocCount" json:"total_alloc_count,omitempty"` |
| 680 | // The total size of allocations in soong_build in bytes. |
| 681 | TotalAllocSize *uint64 `protobuf:"varint,4,opt,name=total_alloc_size,json=totalAllocSize" json:"total_alloc_size,omitempty"` |
| 682 | // The approximate maximum size of the heap in soong_build in bytes. |
| 683 | MaxHeapSize *uint64 `protobuf:"varint,5,opt,name=max_heap_size,json=maxHeapSize" json:"max_heap_size,omitempty"` |
| 684 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 685 | XXX_unrecognized []byte `json:"-"` |
| 686 | XXX_sizecache int32 `json:"-"` |
| 687 | } |
| 688 | |
| 689 | func (m *SoongBuildMetrics) Reset() { *m = SoongBuildMetrics{} } |
| 690 | func (m *SoongBuildMetrics) String() string { return proto.CompactTextString(m) } |
| 691 | func (*SoongBuildMetrics) ProtoMessage() {} |
| 692 | func (*SoongBuildMetrics) Descriptor() ([]byte, []int) { |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 693 | return fileDescriptor_6039342a2ba47b72, []int{6} |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 694 | } |
| 695 | |
| 696 | func (m *SoongBuildMetrics) XXX_Unmarshal(b []byte) error { |
| 697 | return xxx_messageInfo_SoongBuildMetrics.Unmarshal(m, b) |
| 698 | } |
| 699 | func (m *SoongBuildMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 700 | return xxx_messageInfo_SoongBuildMetrics.Marshal(b, m, deterministic) |
| 701 | } |
| 702 | func (m *SoongBuildMetrics) XXX_Merge(src proto.Message) { |
| 703 | xxx_messageInfo_SoongBuildMetrics.Merge(m, src) |
| 704 | } |
| 705 | func (m *SoongBuildMetrics) XXX_Size() int { |
| 706 | return xxx_messageInfo_SoongBuildMetrics.Size(m) |
| 707 | } |
| 708 | func (m *SoongBuildMetrics) XXX_DiscardUnknown() { |
| 709 | xxx_messageInfo_SoongBuildMetrics.DiscardUnknown(m) |
| 710 | } |
| 711 | |
| 712 | var xxx_messageInfo_SoongBuildMetrics proto.InternalMessageInfo |
| 713 | |
| 714 | func (m *SoongBuildMetrics) GetModules() uint32 { |
| 715 | if m != nil && m.Modules != nil { |
| 716 | return *m.Modules |
| 717 | } |
| 718 | return 0 |
| 719 | } |
| 720 | |
| 721 | func (m *SoongBuildMetrics) GetVariants() uint32 { |
| 722 | if m != nil && m.Variants != nil { |
| 723 | return *m.Variants |
| 724 | } |
| 725 | return 0 |
| 726 | } |
| 727 | |
| 728 | func (m *SoongBuildMetrics) GetTotalAllocCount() uint64 { |
| 729 | if m != nil && m.TotalAllocCount != nil { |
| 730 | return *m.TotalAllocCount |
| 731 | } |
| 732 | return 0 |
| 733 | } |
| 734 | |
| 735 | func (m *SoongBuildMetrics) GetTotalAllocSize() uint64 { |
| 736 | if m != nil && m.TotalAllocSize != nil { |
| 737 | return *m.TotalAllocSize |
| 738 | } |
| 739 | return 0 |
| 740 | } |
| 741 | |
| 742 | func (m *SoongBuildMetrics) GetMaxHeapSize() uint64 { |
| 743 | if m != nil && m.MaxHeapSize != nil { |
| 744 | return *m.MaxHeapSize |
| 745 | } |
| 746 | return 0 |
| 747 | } |
| 748 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 749 | func init() { |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 750 | proto.RegisterEnum("soong_build_metrics.MetricsBase_BuildVariant", MetricsBase_BuildVariant_name, MetricsBase_BuildVariant_value) |
| 751 | proto.RegisterEnum("soong_build_metrics.MetricsBase_Arch", MetricsBase_Arch_name, MetricsBase_Arch_value) |
| 752 | proto.RegisterEnum("soong_build_metrics.ModuleTypeInfo_BuildSystem", ModuleTypeInfo_BuildSystem_name, ModuleTypeInfo_BuildSystem_value) |
| 753 | proto.RegisterType((*MetricsBase)(nil), "soong_build_metrics.MetricsBase") |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 754 | proto.RegisterType((*BuildConfig)(nil), "soong_build_metrics.BuildConfig") |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 755 | proto.RegisterType((*PerfInfo)(nil), "soong_build_metrics.PerfInfo") |
| 756 | proto.RegisterType((*ModuleTypeInfo)(nil), "soong_build_metrics.ModuleTypeInfo") |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 757 | proto.RegisterType((*CriticalUserJourneyMetrics)(nil), "soong_build_metrics.CriticalUserJourneyMetrics") |
| 758 | proto.RegisterType((*CriticalUserJourneysMetrics)(nil), "soong_build_metrics.CriticalUserJourneysMetrics") |
Colin Cross | b72c909 | 2020-02-10 11:23:49 -0800 | [diff] [blame] | 759 | proto.RegisterType((*SoongBuildMetrics)(nil), "soong_build_metrics.SoongBuildMetrics") |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 760 | } |
| 761 | |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 762 | func init() { |
| 763 | proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) |
| 764 | } |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 765 | |
Patrice Arruda | 0cc5b21 | 2019-06-14 15:27:46 -0700 | [diff] [blame] | 766 | var fileDescriptor_6039342a2ba47b72 = []byte{ |
Patrice Arruda | 9685036 | 2020-08-11 20:41:11 +0000 | [diff] [blame] | 767 | // 1021 bytes of a gzipped FileDescriptorProto |
| 768 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xef, 0x6e, 0xdb, 0x36, |
| 769 | 0x10, 0xaf, 0x12, 0x27, 0xb6, 0x4e, 0xb1, 0xab, 0x30, 0xed, 0xa2, 0xb6, 0x08, 0x66, 0x18, 0x6b, |
| 770 | 0x11, 0x0c, 0x6b, 0x5a, 0x64, 0x45, 0x50, 0x04, 0xc5, 0x00, 0xc7, 0x09, 0xb2, 0x2e, 0x48, 0x5c, |
| 771 | 0x30, 0x7f, 0x56, 0x6c, 0x1f, 0x04, 0x5a, 0xa2, 0x13, 0x75, 0x96, 0x28, 0x90, 0x54, 0x91, 0xf4, |
| 772 | 0x1d, 0xf6, 0x54, 0x7b, 0x96, 0xbd, 0xc6, 0x30, 0xf0, 0x28, 0xd9, 0xca, 0xe6, 0xad, 0x41, 0xbf, |
| 773 | 0x89, 0xf7, 0xfb, 0xc3, 0x3b, 0xf2, 0x78, 0x36, 0xb4, 0x53, 0xae, 0x65, 0x12, 0xa9, 0xad, 0x5c, |
| 774 | 0x0a, 0x2d, 0xc8, 0x9a, 0x12, 0x22, 0xbb, 0x0c, 0x47, 0x45, 0x32, 0x89, 0xc3, 0x12, 0xea, 0xfd, |
| 775 | 0x05, 0xe0, 0x1d, 0xdb, 0xef, 0x3d, 0xa6, 0x38, 0x79, 0x09, 0x0f, 0x2c, 0x21, 0x66, 0x9a, 0x87, |
| 776 | 0x3a, 0x49, 0xb9, 0xd2, 0x2c, 0xcd, 0x03, 0xa7, 0xeb, 0x6c, 0x2e, 0x52, 0x82, 0xd8, 0x3e, 0xd3, |
| 777 | 0xfc, 0xac, 0x42, 0xc8, 0x23, 0x68, 0x59, 0x45, 0x12, 0x07, 0x0b, 0x5d, 0x67, 0xd3, 0xa5, 0x4d, |
| 778 | 0x5c, 0xbf, 0x8d, 0xc9, 0x2e, 0x3c, 0xca, 0x27, 0x4c, 0x8f, 0x85, 0x4c, 0xc3, 0x8f, 0x5c, 0xaa, |
| 779 | 0x44, 0x64, 0x61, 0x24, 0x62, 0x9e, 0xb1, 0x94, 0x07, 0x8b, 0xc8, 0x5d, 0xaf, 0x08, 0x17, 0x16, |
| 780 | 0x1f, 0x94, 0x30, 0x79, 0x0a, 0x1d, 0xcd, 0xe4, 0x25, 0xd7, 0x61, 0x2e, 0x45, 0x5c, 0x44, 0x3a, |
| 781 | 0x68, 0xa0, 0xa0, 0x6d, 0xa3, 0xef, 0x6c, 0x90, 0xc4, 0xf0, 0xa0, 0xa4, 0xd9, 0x24, 0x3e, 0x32, |
| 782 | 0x99, 0xb0, 0x4c, 0x07, 0x4b, 0x5d, 0x67, 0xb3, 0xb3, 0xfd, 0x7c, 0x6b, 0x4e, 0xcd, 0x5b, 0xb5, |
| 783 | 0x7a, 0xb7, 0xf6, 0x0c, 0x72, 0x61, 0x45, 0xbb, 0x8b, 0x07, 0x27, 0x87, 0x94, 0x58, 0xbf, 0x3a, |
| 784 | 0x40, 0x86, 0xe0, 0x95, 0xbb, 0x30, 0x19, 0x5d, 0x05, 0xcb, 0x68, 0xfe, 0xf4, 0xb3, 0xe6, 0x7d, |
| 785 | 0x19, 0x5d, 0xed, 0x36, 0xcf, 0x4f, 0x8e, 0x4e, 0x86, 0x3f, 0x9f, 0x50, 0xb0, 0x16, 0x26, 0x48, |
| 786 | 0xb6, 0x60, 0xad, 0x66, 0x38, 0xcd, 0xba, 0x89, 0x25, 0xae, 0xce, 0x88, 0x55, 0x02, 0xdf, 0x41, |
| 787 | 0x99, 0x56, 0x18, 0xe5, 0xc5, 0x94, 0xde, 0x42, 0xba, 0x6f, 0x91, 0x41, 0x5e, 0x54, 0xec, 0x23, |
| 788 | 0x70, 0xaf, 0x84, 0x2a, 0x93, 0x75, 0xbf, 0x28, 0xd9, 0x96, 0x31, 0xc0, 0x54, 0x29, 0xb4, 0xd1, |
| 789 | 0x6c, 0x3b, 0x8b, 0xad, 0x21, 0x7c, 0x91, 0xa1, 0x67, 0x4c, 0xb6, 0xb3, 0x18, 0x3d, 0xd7, 0xa1, |
| 790 | 0x89, 0x9e, 0x42, 0x05, 0x1e, 0xd6, 0xb0, 0x6c, 0x96, 0x43, 0x45, 0x7a, 0xe5, 0x66, 0x42, 0x85, |
| 791 | 0xfc, 0x5a, 0x4b, 0x16, 0xac, 0x20, 0xec, 0x59, 0xf8, 0xc0, 0x84, 0xa6, 0x9c, 0x48, 0x0a, 0xa5, |
| 792 | 0x8c, 0x45, 0x7b, 0xc6, 0x19, 0x98, 0xd8, 0x50, 0x91, 0x67, 0x70, 0xbf, 0xc6, 0xc1, 0xb4, 0x3b, |
| 793 | 0xb6, 0x7d, 0xa6, 0x2c, 0x4c, 0xe4, 0x39, 0xac, 0xd5, 0x78, 0xd3, 0x12, 0xef, 0xdb, 0x83, 0x9d, |
| 794 | 0x72, 0x6b, 0x79, 0x8b, 0x42, 0x87, 0x71, 0x22, 0x03, 0xdf, 0xe6, 0x2d, 0x0a, 0xbd, 0x9f, 0x48, |
| 795 | 0xf2, 0x03, 0x78, 0x8a, 0xeb, 0x22, 0x0f, 0xb5, 0x10, 0x13, 0x15, 0xac, 0x76, 0x17, 0x37, 0xbd, |
| 796 | 0xed, 0x8d, 0xb9, 0x47, 0xf4, 0x8e, 0xcb, 0xf1, 0xdb, 0x6c, 0x2c, 0x28, 0xa0, 0xe2, 0xcc, 0x08, |
| 797 | 0xc8, 0x2e, 0xb8, 0xbf, 0x31, 0x9d, 0x84, 0xb2, 0xc8, 0x54, 0x40, 0xee, 0xa2, 0x6e, 0x19, 0x3e, |
| 798 | 0x2d, 0x32, 0x45, 0xde, 0x00, 0x58, 0x26, 0x8a, 0xd7, 0xee, 0x22, 0x76, 0x11, 0xad, 0xd4, 0x59, |
| 799 | 0x92, 0x7d, 0x60, 0x56, 0xfd, 0xe0, 0x4e, 0x6a, 0x14, 0xa0, 0xfa, 0x7b, 0x58, 0xd2, 0x42, 0xb3, |
| 800 | 0x49, 0xf0, 0xb0, 0xeb, 0x7c, 0x5e, 0x68, 0xb9, 0xe4, 0x02, 0xe6, 0x8d, 0xa2, 0xe0, 0x2b, 0xb4, |
| 801 | 0x78, 0x36, 0xd7, 0xe2, 0xd4, 0xc4, 0xf0, 0x49, 0x96, 0x1d, 0x46, 0x57, 0xd5, 0x3f, 0x43, 0x64, |
| 802 | 0x00, 0x2b, 0x56, 0x15, 0x89, 0x6c, 0x9c, 0x5c, 0x06, 0xeb, 0x68, 0xd8, 0x9d, 0x6b, 0x88, 0xc2, |
| 803 | 0x01, 0xf2, 0xa8, 0x37, 0x9a, 0x2d, 0x7a, 0x2f, 0x61, 0xe5, 0xd6, 0xd3, 0x6f, 0x41, 0xe3, 0xfc, |
| 804 | 0xf4, 0x80, 0xfa, 0xf7, 0x48, 0x1b, 0x5c, 0xf3, 0xb5, 0x7f, 0xb0, 0x77, 0x7e, 0xe8, 0x3b, 0xa4, |
| 805 | 0x09, 0x66, 0x5c, 0xf8, 0x0b, 0xbd, 0x37, 0xd0, 0xc0, 0xe6, 0xf0, 0xa0, 0x6a, 0x76, 0xff, 0x9e, |
| 806 | 0x41, 0xfb, 0xf4, 0xd8, 0x77, 0x88, 0x0b, 0x4b, 0x7d, 0x7a, 0xbc, 0xf3, 0xca, 0x5f, 0x30, 0xb1, |
| 807 | 0xf7, 0xaf, 0x77, 0xfc, 0x45, 0x02, 0xb0, 0xfc, 0xfe, 0xf5, 0x4e, 0xb8, 0xf3, 0xca, 0x6f, 0xf4, |
| 808 | 0xfa, 0xe0, 0xd5, 0x72, 0x31, 0xd3, 0xb4, 0x50, 0x3c, 0xbc, 0x14, 0x29, 0xc3, 0x99, 0xdb, 0xa2, |
| 809 | 0xcd, 0x42, 0xf1, 0x43, 0x91, 0x32, 0xd3, 0x7c, 0x06, 0x92, 0x23, 0x8e, 0x73, 0xb6, 0x45, 0x97, |
| 810 | 0x0b, 0xc5, 0xe9, 0x88, 0xf7, 0x7e, 0x77, 0xa0, 0x55, 0x9d, 0x31, 0x21, 0xd0, 0x88, 0xb9, 0x8a, |
| 811 | 0x50, 0xec, 0x52, 0xfc, 0x36, 0x31, 0x1c, 0xb9, 0x76, 0x3c, 0xe3, 0x37, 0xd9, 0x00, 0x50, 0x9a, |
| 812 | 0x49, 0x8d, 0x33, 0x1e, 0x87, 0x71, 0x83, 0xba, 0x18, 0x31, 0xa3, 0x9d, 0x3c, 0x01, 0x57, 0x72, |
| 813 | 0x36, 0xb1, 0x68, 0x03, 0xd1, 0x96, 0x09, 0x20, 0xb8, 0x01, 0x90, 0xf2, 0x54, 0xc8, 0x9b, 0xb0, |
| 814 | 0x50, 0x1c, 0x47, 0x6d, 0x83, 0xba, 0x36, 0x72, 0xae, 0x78, 0xef, 0x4f, 0x07, 0x3a, 0xc7, 0x22, |
| 815 | 0x2e, 0x26, 0xfc, 0xec, 0x26, 0xe7, 0x98, 0xd5, 0xaf, 0xd5, 0xd5, 0xa8, 0x1b, 0xa5, 0x79, 0x8a, |
| 816 | 0xd9, 0x75, 0xb6, 0x5f, 0xcc, 0x9f, 0x21, 0xb7, 0xa4, 0xf6, 0xa6, 0x4e, 0x51, 0x56, 0x9b, 0x26, |
| 817 | 0xa3, 0x59, 0x94, 0x7c, 0x0d, 0x5e, 0x8a, 0x9a, 0x50, 0xdf, 0xe4, 0x55, 0x95, 0x90, 0x4e, 0x6d, |
| 818 | 0xc8, 0x37, 0xd0, 0xc9, 0x8a, 0x34, 0x14, 0xe3, 0xd0, 0x06, 0x15, 0xd6, 0xdb, 0xa6, 0x2b, 0x59, |
| 819 | 0x91, 0x0e, 0xc7, 0x76, 0x3f, 0xd5, 0x7b, 0x51, 0xde, 0x44, 0xe9, 0x7a, 0xeb, 0x3a, 0x5d, 0x58, |
| 820 | 0x3a, 0x1d, 0x0e, 0x4f, 0xcc, 0xbd, 0xb7, 0xa0, 0x71, 0xdc, 0x3f, 0x3a, 0xf0, 0x17, 0x7a, 0x13, |
| 821 | 0x78, 0x3c, 0x90, 0x89, 0x4e, 0x22, 0x36, 0x39, 0x57, 0x5c, 0xfe, 0x24, 0x0a, 0x99, 0xf1, 0x9b, |
| 822 | 0xaa, 0x1b, 0xab, 0x43, 0x77, 0x6a, 0x87, 0xbe, 0x0b, 0xcd, 0xaa, 0xdb, 0x17, 0xfe, 0xa7, 0x39, |
| 823 | 0x6b, 0x53, 0x94, 0x56, 0x82, 0xde, 0x08, 0x9e, 0xcc, 0xd9, 0x4d, 0xcd, 0x9a, 0xbf, 0x11, 0x15, |
| 824 | 0x1f, 0x54, 0xe0, 0xe0, 0x0b, 0x9e, 0x7f, 0xb2, 0xff, 0x9d, 0x2d, 0x45, 0x71, 0xef, 0x0f, 0x07, |
| 825 | 0x56, 0xff, 0xf5, 0xd4, 0x48, 0x00, 0xcd, 0xea, 0xdc, 0x1c, 0x3c, 0xb7, 0x6a, 0x49, 0x1e, 0x43, |
| 826 | 0xab, 0xfc, 0x2d, 0xb2, 0x05, 0xb5, 0xe9, 0x74, 0x4d, 0xbe, 0x85, 0x55, 0x7c, 0xee, 0x21, 0x9b, |
| 827 | 0x4c, 0x44, 0x14, 0x46, 0xa2, 0xc8, 0x74, 0xd9, 0x67, 0xf7, 0x11, 0xe8, 0x9b, 0xf8, 0xc0, 0x84, |
| 828 | 0xc9, 0x26, 0xf8, 0x75, 0xae, 0x4a, 0x3e, 0x55, 0x4d, 0xd7, 0x99, 0x51, 0x4f, 0x93, 0x4f, 0xdc, |
| 829 | 0x0c, 0xff, 0x94, 0x5d, 0x87, 0x57, 0x9c, 0xe5, 0x96, 0x66, 0xbb, 0xcf, 0x4b, 0xd9, 0xf5, 0x8f, |
| 830 | 0x9c, 0xe5, 0x86, 0xb3, 0xf7, 0xf0, 0x97, 0x72, 0xbe, 0x94, 0x75, 0x87, 0xf8, 0xff, 0xe7, 0xef, |
| 831 | 0x00, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x03, 0x26, 0x59, 0x0f, 0x09, 0x00, 0x00, |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 832 | } |