blob: 0fe5a0db92a2876f3d9be30a5a87152dbda5ba98 [file] [log] [blame]
Nan Zhang17f27672018-12-12 16:01:49 -08001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: metrics.proto
3
Patrice Arruda0cc5b212019-06-14 15:27:46 -07004package soong_metrics_proto
Nan Zhang17f27672018-12-12 16:01:49 -08005
Patrice Arruda0cc5b212019-06-14 15:27:46 -07006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10)
Nan Zhang17f27672018-12-12 16:01:49 -080011
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = 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 Arruda0cc5b212019-06-14 15:27:46 -070021const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
Nan Zhang17f27672018-12-12 16:01:49 -080022
Patrice Arruda0cc5b212019-06-14 15:27:46 -070023type MetricsBase_BuildVariant int32
Nan Zhang17f27672018-12-12 16:01:49 -080024
25const (
Patrice Arruda0cc5b212019-06-14 15:27:46 -070026 MetricsBase_USER MetricsBase_BuildVariant = 0
27 MetricsBase_USERDEBUG MetricsBase_BuildVariant = 1
28 MetricsBase_ENG MetricsBase_BuildVariant = 2
Nan Zhang17f27672018-12-12 16:01:49 -080029)
30
Patrice Arruda0cc5b212019-06-14 15:27:46 -070031var MetricsBase_BuildVariant_name = map[int32]string{
Nan Zhang17f27672018-12-12 16:01:49 -080032 0: "USER",
33 1: "USERDEBUG",
34 2: "ENG",
35}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070036
37var MetricsBase_BuildVariant_value = map[string]int32{
Nan Zhang17f27672018-12-12 16:01:49 -080038 "USER": 0,
39 "USERDEBUG": 1,
40 "ENG": 2,
41}
42
Patrice Arruda0cc5b212019-06-14 15:27:46 -070043func (x MetricsBase_BuildVariant) Enum() *MetricsBase_BuildVariant {
44 p := new(MetricsBase_BuildVariant)
Nan Zhang17f27672018-12-12 16:01:49 -080045 *p = x
46 return p
47}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070048
49func (x MetricsBase_BuildVariant) String() string {
50 return proto.EnumName(MetricsBase_BuildVariant_name, int32(x))
Nan Zhang17f27672018-12-12 16:01:49 -080051}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070052
53func (x *MetricsBase_BuildVariant) UnmarshalJSON(data []byte) error {
54 value, err := proto.UnmarshalJSONEnum(MetricsBase_BuildVariant_value, data, "MetricsBase_BuildVariant")
Nan Zhang17f27672018-12-12 16:01:49 -080055 if err != nil {
56 return err
57 }
Patrice Arruda0cc5b212019-06-14 15:27:46 -070058 *x = MetricsBase_BuildVariant(value)
Nan Zhang17f27672018-12-12 16:01:49 -080059 return nil
60}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070061
62func (MetricsBase_BuildVariant) EnumDescriptor() ([]byte, []int) {
63 return fileDescriptor_6039342a2ba47b72, []int{0, 0}
Nan Zhang17f27672018-12-12 16:01:49 -080064}
65
Patrice Arruda0cc5b212019-06-14 15:27:46 -070066type MetricsBase_Arch int32
Nan Zhang17f27672018-12-12 16:01:49 -080067
68const (
Patrice Arruda0cc5b212019-06-14 15:27:46 -070069 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 Zhang17f27672018-12-12 16:01:49 -080074)
75
Patrice Arruda0cc5b212019-06-14 15:27:46 -070076var MetricsBase_Arch_name = map[int32]string{
Nan Zhang17f27672018-12-12 16:01:49 -080077 0: "UNKNOWN",
78 1: "ARM",
79 2: "ARM64",
80 3: "X86",
81 4: "X86_64",
82}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070083
84var MetricsBase_Arch_value = map[string]int32{
Nan Zhang17f27672018-12-12 16:01:49 -080085 "UNKNOWN": 0,
86 "ARM": 1,
87 "ARM64": 2,
88 "X86": 3,
89 "X86_64": 4,
90}
91
Patrice Arruda0cc5b212019-06-14 15:27:46 -070092func (x MetricsBase_Arch) Enum() *MetricsBase_Arch {
93 p := new(MetricsBase_Arch)
Nan Zhang17f27672018-12-12 16:01:49 -080094 *p = x
95 return p
96}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070097
98func (x MetricsBase_Arch) String() string {
99 return proto.EnumName(MetricsBase_Arch_name, int32(x))
Nan Zhang17f27672018-12-12 16:01:49 -0800100}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700101
102func (x *MetricsBase_Arch) UnmarshalJSON(data []byte) error {
103 value, err := proto.UnmarshalJSONEnum(MetricsBase_Arch_value, data, "MetricsBase_Arch")
Nan Zhang17f27672018-12-12 16:01:49 -0800104 if err != nil {
105 return err
106 }
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700107 *x = MetricsBase_Arch(value)
Nan Zhang17f27672018-12-12 16:01:49 -0800108 return nil
109}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700110
111func (MetricsBase_Arch) EnumDescriptor() ([]byte, []int) {
112 return fileDescriptor_6039342a2ba47b72, []int{0, 1}
Nan Zhang17f27672018-12-12 16:01:49 -0800113}
114
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700115type ModuleTypeInfo_BuildSystem int32
Nan Zhang17f27672018-12-12 16:01:49 -0800116
117const (
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700118 ModuleTypeInfo_UNKNOWN ModuleTypeInfo_BuildSystem = 0
119 ModuleTypeInfo_SOONG ModuleTypeInfo_BuildSystem = 1
120 ModuleTypeInfo_MAKE ModuleTypeInfo_BuildSystem = 2
Nan Zhang17f27672018-12-12 16:01:49 -0800121)
122
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700123var ModuleTypeInfo_BuildSystem_name = map[int32]string{
Nan Zhang17f27672018-12-12 16:01:49 -0800124 0: "UNKNOWN",
125 1: "SOONG",
126 2: "MAKE",
127}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700128
129var ModuleTypeInfo_BuildSystem_value = map[string]int32{
Nan Zhang17f27672018-12-12 16:01:49 -0800130 "UNKNOWN": 0,
131 "SOONG": 1,
132 "MAKE": 2,
133}
134
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700135func (x ModuleTypeInfo_BuildSystem) Enum() *ModuleTypeInfo_BuildSystem {
136 p := new(ModuleTypeInfo_BuildSystem)
Nan Zhang17f27672018-12-12 16:01:49 -0800137 *p = x
138 return p
139}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700140
141func (x ModuleTypeInfo_BuildSystem) String() string {
142 return proto.EnumName(ModuleTypeInfo_BuildSystem_name, int32(x))
Nan Zhang17f27672018-12-12 16:01:49 -0800143}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700144
145func (x *ModuleTypeInfo_BuildSystem) UnmarshalJSON(data []byte) error {
146 value, err := proto.UnmarshalJSONEnum(ModuleTypeInfo_BuildSystem_value, data, "ModuleTypeInfo_BuildSystem")
Nan Zhang17f27672018-12-12 16:01:49 -0800147 if err != nil {
148 return err
149 }
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700150 *x = ModuleTypeInfo_BuildSystem(value)
Nan Zhang17f27672018-12-12 16:01:49 -0800151 return nil
152}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700153
154func (ModuleTypeInfo_BuildSystem) EnumDescriptor() ([]byte, []int) {
155 return fileDescriptor_6039342a2ba47b72, []int{2, 0}
Nan Zhang17f27672018-12-12 16:01:49 -0800156}
157
158type 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 Arruda0cc5b212019-06-14 15:27:46 -0700168 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 Zhang17f27672018-12-12 16:01:49 -0800169 // The target arch information, eg. arm.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700170 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 Zhang17f27672018-12-12 16:01:49 -0800171 // 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 Arruda0cc5b212019-06-14 15:27:46 -0700176 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 Zhang17f27672018-12-12 16:01:49 -0800177 // The host 2nd arch information, eg. x86.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700178 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 Zhang17f27672018-12-12 16:01:49 -0800179 // 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.
198 NinjaRuns []*PerfInfo `protobuf:"bytes,20,rep,name=ninja_runs,json=ninjaRuns" json:"ninja_runs,omitempty"`
199 XXX_NoUnkeyedLiteral struct{} `json:"-"`
200 XXX_unrecognized []byte `json:"-"`
201 XXX_sizecache int32 `json:"-"`
202}
203
204func (m *MetricsBase) Reset() { *m = MetricsBase{} }
205func (m *MetricsBase) String() string { return proto.CompactTextString(m) }
206func (*MetricsBase) ProtoMessage() {}
207func (*MetricsBase) Descriptor() ([]byte, []int) {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700208 return fileDescriptor_6039342a2ba47b72, []int{0}
Nan Zhang17f27672018-12-12 16:01:49 -0800209}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700210
Nan Zhang17f27672018-12-12 16:01:49 -0800211func (m *MetricsBase) XXX_Unmarshal(b []byte) error {
212 return xxx_messageInfo_MetricsBase.Unmarshal(m, b)
213}
214func (m *MetricsBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
215 return xxx_messageInfo_MetricsBase.Marshal(b, m, deterministic)
216}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700217func (m *MetricsBase) XXX_Merge(src proto.Message) {
218 xxx_messageInfo_MetricsBase.Merge(m, src)
Nan Zhang17f27672018-12-12 16:01:49 -0800219}
220func (m *MetricsBase) XXX_Size() int {
221 return xxx_messageInfo_MetricsBase.Size(m)
222}
223func (m *MetricsBase) XXX_DiscardUnknown() {
224 xxx_messageInfo_MetricsBase.DiscardUnknown(m)
225}
226
227var xxx_messageInfo_MetricsBase proto.InternalMessageInfo
228
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700229const Default_MetricsBase_TargetBuildVariant MetricsBase_BuildVariant = MetricsBase_ENG
230const Default_MetricsBase_TargetArch MetricsBase_Arch = MetricsBase_UNKNOWN
231const Default_MetricsBase_HostArch MetricsBase_Arch = MetricsBase_UNKNOWN
232const Default_MetricsBase_Host_2NdArch MetricsBase_Arch = MetricsBase_UNKNOWN
Nan Zhang17f27672018-12-12 16:01:49 -0800233
234func (m *MetricsBase) GetBuildDateTimestamp() int64 {
235 if m != nil && m.BuildDateTimestamp != nil {
236 return *m.BuildDateTimestamp
237 }
238 return 0
239}
240
241func (m *MetricsBase) GetBuildId() string {
242 if m != nil && m.BuildId != nil {
243 return *m.BuildId
244 }
245 return ""
246}
247
248func (m *MetricsBase) GetPlatformVersionCodename() string {
249 if m != nil && m.PlatformVersionCodename != nil {
250 return *m.PlatformVersionCodename
251 }
252 return ""
253}
254
255func (m *MetricsBase) GetTargetProduct() string {
256 if m != nil && m.TargetProduct != nil {
257 return *m.TargetProduct
258 }
259 return ""
260}
261
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700262func (m *MetricsBase) GetTargetBuildVariant() MetricsBase_BuildVariant {
Nan Zhang17f27672018-12-12 16:01:49 -0800263 if m != nil && m.TargetBuildVariant != nil {
264 return *m.TargetBuildVariant
265 }
266 return Default_MetricsBase_TargetBuildVariant
267}
268
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700269func (m *MetricsBase) GetTargetArch() MetricsBase_Arch {
Nan Zhang17f27672018-12-12 16:01:49 -0800270 if m != nil && m.TargetArch != nil {
271 return *m.TargetArch
272 }
273 return Default_MetricsBase_TargetArch
274}
275
276func (m *MetricsBase) GetTargetArchVariant() string {
277 if m != nil && m.TargetArchVariant != nil {
278 return *m.TargetArchVariant
279 }
280 return ""
281}
282
283func (m *MetricsBase) GetTargetCpuVariant() string {
284 if m != nil && m.TargetCpuVariant != nil {
285 return *m.TargetCpuVariant
286 }
287 return ""
288}
289
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700290func (m *MetricsBase) GetHostArch() MetricsBase_Arch {
Nan Zhang17f27672018-12-12 16:01:49 -0800291 if m != nil && m.HostArch != nil {
292 return *m.HostArch
293 }
294 return Default_MetricsBase_HostArch
295}
296
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700297func (m *MetricsBase) GetHost_2NdArch() MetricsBase_Arch {
Nan Zhang17f27672018-12-12 16:01:49 -0800298 if m != nil && m.Host_2NdArch != nil {
299 return *m.Host_2NdArch
300 }
301 return Default_MetricsBase_Host_2NdArch
302}
303
304func (m *MetricsBase) GetHostOs() string {
305 if m != nil && m.HostOs != nil {
306 return *m.HostOs
307 }
308 return ""
309}
310
311func (m *MetricsBase) GetHostOsExtra() string {
312 if m != nil && m.HostOsExtra != nil {
313 return *m.HostOsExtra
314 }
315 return ""
316}
317
318func (m *MetricsBase) GetHostCrossOs() string {
319 if m != nil && m.HostCrossOs != nil {
320 return *m.HostCrossOs
321 }
322 return ""
323}
324
325func (m *MetricsBase) GetHostCrossArch() string {
326 if m != nil && m.HostCrossArch != nil {
327 return *m.HostCrossArch
328 }
329 return ""
330}
331
332func (m *MetricsBase) GetHostCross_2NdArch() string {
333 if m != nil && m.HostCross_2NdArch != nil {
334 return *m.HostCross_2NdArch
335 }
336 return ""
337}
338
339func (m *MetricsBase) GetOutDir() string {
340 if m != nil && m.OutDir != nil {
341 return *m.OutDir
342 }
343 return ""
344}
345
346func (m *MetricsBase) GetSetupTools() []*PerfInfo {
347 if m != nil {
348 return m.SetupTools
349 }
350 return nil
351}
352
353func (m *MetricsBase) GetKatiRuns() []*PerfInfo {
354 if m != nil {
355 return m.KatiRuns
356 }
357 return nil
358}
359
360func (m *MetricsBase) GetSoongRuns() []*PerfInfo {
361 if m != nil {
362 return m.SoongRuns
363 }
364 return nil
365}
366
367func (m *MetricsBase) GetNinjaRuns() []*PerfInfo {
368 if m != nil {
369 return m.NinjaRuns
370 }
371 return nil
372}
373
374type PerfInfo struct {
375 // The description for the phase/action/part while the tool running.
376 Desc *string `protobuf:"bytes,1,opt,name=desc" json:"desc,omitempty"`
377 // The name for the running phase/action/part.
378 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
379 // The absolute start time.
380 // The number of nanoseconds elapsed since January 1, 1970 UTC.
381 StartTime *uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
382 // The real running time.
383 // The number of nanoseconds elapsed since start_time.
384 RealTime *uint64 `protobuf:"varint,4,opt,name=real_time,json=realTime" json:"real_time,omitempty"`
385 // The number of MB for memory use.
386 MemoryUse *uint64 `protobuf:"varint,5,opt,name=memory_use,json=memoryUse" json:"memory_use,omitempty"`
387 XXX_NoUnkeyedLiteral struct{} `json:"-"`
388 XXX_unrecognized []byte `json:"-"`
389 XXX_sizecache int32 `json:"-"`
390}
391
392func (m *PerfInfo) Reset() { *m = PerfInfo{} }
393func (m *PerfInfo) String() string { return proto.CompactTextString(m) }
394func (*PerfInfo) ProtoMessage() {}
395func (*PerfInfo) Descriptor() ([]byte, []int) {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700396 return fileDescriptor_6039342a2ba47b72, []int{1}
Nan Zhang17f27672018-12-12 16:01:49 -0800397}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700398
Nan Zhang17f27672018-12-12 16:01:49 -0800399func (m *PerfInfo) XXX_Unmarshal(b []byte) error {
400 return xxx_messageInfo_PerfInfo.Unmarshal(m, b)
401}
402func (m *PerfInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
403 return xxx_messageInfo_PerfInfo.Marshal(b, m, deterministic)
404}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700405func (m *PerfInfo) XXX_Merge(src proto.Message) {
406 xxx_messageInfo_PerfInfo.Merge(m, src)
Nan Zhang17f27672018-12-12 16:01:49 -0800407}
408func (m *PerfInfo) XXX_Size() int {
409 return xxx_messageInfo_PerfInfo.Size(m)
410}
411func (m *PerfInfo) XXX_DiscardUnknown() {
412 xxx_messageInfo_PerfInfo.DiscardUnknown(m)
413}
414
415var xxx_messageInfo_PerfInfo proto.InternalMessageInfo
416
417func (m *PerfInfo) GetDesc() string {
418 if m != nil && m.Desc != nil {
419 return *m.Desc
420 }
421 return ""
422}
423
424func (m *PerfInfo) GetName() string {
425 if m != nil && m.Name != nil {
426 return *m.Name
427 }
428 return ""
429}
430
431func (m *PerfInfo) GetStartTime() uint64 {
432 if m != nil && m.StartTime != nil {
433 return *m.StartTime
434 }
435 return 0
436}
437
438func (m *PerfInfo) GetRealTime() uint64 {
439 if m != nil && m.RealTime != nil {
440 return *m.RealTime
441 }
442 return 0
443}
444
445func (m *PerfInfo) GetMemoryUse() uint64 {
446 if m != nil && m.MemoryUse != nil {
447 return *m.MemoryUse
448 }
449 return 0
450}
451
452type ModuleTypeInfo struct {
453 // The build system, eg. Soong or Make.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700454 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 Zhang17f27672018-12-12 16:01:49 -0800455 // The module type, eg. java_library, cc_binary, and etc.
456 ModuleType *string `protobuf:"bytes,2,opt,name=module_type,json=moduleType" json:"module_type,omitempty"`
457 // The number of logical modules.
458 NumOfModules *uint32 `protobuf:"varint,3,opt,name=num_of_modules,json=numOfModules" json:"num_of_modules,omitempty"`
459 XXX_NoUnkeyedLiteral struct{} `json:"-"`
460 XXX_unrecognized []byte `json:"-"`
461 XXX_sizecache int32 `json:"-"`
462}
463
464func (m *ModuleTypeInfo) Reset() { *m = ModuleTypeInfo{} }
465func (m *ModuleTypeInfo) String() string { return proto.CompactTextString(m) }
466func (*ModuleTypeInfo) ProtoMessage() {}
467func (*ModuleTypeInfo) Descriptor() ([]byte, []int) {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700468 return fileDescriptor_6039342a2ba47b72, []int{2}
Nan Zhang17f27672018-12-12 16:01:49 -0800469}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700470
Nan Zhang17f27672018-12-12 16:01:49 -0800471func (m *ModuleTypeInfo) XXX_Unmarshal(b []byte) error {
472 return xxx_messageInfo_ModuleTypeInfo.Unmarshal(m, b)
473}
474func (m *ModuleTypeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
475 return xxx_messageInfo_ModuleTypeInfo.Marshal(b, m, deterministic)
476}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700477func (m *ModuleTypeInfo) XXX_Merge(src proto.Message) {
478 xxx_messageInfo_ModuleTypeInfo.Merge(m, src)
Nan Zhang17f27672018-12-12 16:01:49 -0800479}
480func (m *ModuleTypeInfo) XXX_Size() int {
481 return xxx_messageInfo_ModuleTypeInfo.Size(m)
482}
483func (m *ModuleTypeInfo) XXX_DiscardUnknown() {
484 xxx_messageInfo_ModuleTypeInfo.DiscardUnknown(m)
485}
486
487var xxx_messageInfo_ModuleTypeInfo proto.InternalMessageInfo
488
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700489const Default_ModuleTypeInfo_BuildSystem ModuleTypeInfo_BuildSystem = ModuleTypeInfo_UNKNOWN
Nan Zhang17f27672018-12-12 16:01:49 -0800490
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700491func (m *ModuleTypeInfo) GetBuildSystem() ModuleTypeInfo_BuildSystem {
Nan Zhang17f27672018-12-12 16:01:49 -0800492 if m != nil && m.BuildSystem != nil {
493 return *m.BuildSystem
494 }
495 return Default_ModuleTypeInfo_BuildSystem
496}
497
498func (m *ModuleTypeInfo) GetModuleType() string {
499 if m != nil && m.ModuleType != nil {
500 return *m.ModuleType
501 }
502 return ""
503}
504
505func (m *ModuleTypeInfo) GetNumOfModules() uint32 {
506 if m != nil && m.NumOfModules != nil {
507 return *m.NumOfModules
508 }
509 return 0
510}
511
Colin Crossd0be2102019-11-26 16:16:57 -0800512type CriticalUserJourneyMetrics struct {
513 // The name of a critical user journey test.
514 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
515 // The metrics produced when running the critical user journey test.
516 Metrics *MetricsBase `protobuf:"bytes,2,opt,name=metrics" json:"metrics,omitempty"`
517 XXX_NoUnkeyedLiteral struct{} `json:"-"`
518 XXX_unrecognized []byte `json:"-"`
519 XXX_sizecache int32 `json:"-"`
520}
521
522func (m *CriticalUserJourneyMetrics) Reset() { *m = CriticalUserJourneyMetrics{} }
523func (m *CriticalUserJourneyMetrics) String() string { return proto.CompactTextString(m) }
524func (*CriticalUserJourneyMetrics) ProtoMessage() {}
525func (*CriticalUserJourneyMetrics) Descriptor() ([]byte, []int) {
526 return fileDescriptor_6039342a2ba47b72, []int{3}
527}
528
529func (m *CriticalUserJourneyMetrics) XXX_Unmarshal(b []byte) error {
530 return xxx_messageInfo_CriticalUserJourneyMetrics.Unmarshal(m, b)
531}
532func (m *CriticalUserJourneyMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
533 return xxx_messageInfo_CriticalUserJourneyMetrics.Marshal(b, m, deterministic)
534}
535func (m *CriticalUserJourneyMetrics) XXX_Merge(src proto.Message) {
536 xxx_messageInfo_CriticalUserJourneyMetrics.Merge(m, src)
537}
538func (m *CriticalUserJourneyMetrics) XXX_Size() int {
539 return xxx_messageInfo_CriticalUserJourneyMetrics.Size(m)
540}
541func (m *CriticalUserJourneyMetrics) XXX_DiscardUnknown() {
542 xxx_messageInfo_CriticalUserJourneyMetrics.DiscardUnknown(m)
543}
544
545var xxx_messageInfo_CriticalUserJourneyMetrics proto.InternalMessageInfo
546
547func (m *CriticalUserJourneyMetrics) GetName() string {
548 if m != nil && m.Name != nil {
549 return *m.Name
550 }
551 return ""
552}
553
554func (m *CriticalUserJourneyMetrics) GetMetrics() *MetricsBase {
555 if m != nil {
556 return m.Metrics
557 }
558 return nil
559}
560
561type CriticalUserJourneysMetrics struct {
562 // A set of metrics from a run of the critical user journey tests.
563 Cujs []*CriticalUserJourneyMetrics `protobuf:"bytes,1,rep,name=cujs" json:"cujs,omitempty"`
564 XXX_NoUnkeyedLiteral struct{} `json:"-"`
565 XXX_unrecognized []byte `json:"-"`
566 XXX_sizecache int32 `json:"-"`
567}
568
569func (m *CriticalUserJourneysMetrics) Reset() { *m = CriticalUserJourneysMetrics{} }
570func (m *CriticalUserJourneysMetrics) String() string { return proto.CompactTextString(m) }
571func (*CriticalUserJourneysMetrics) ProtoMessage() {}
572func (*CriticalUserJourneysMetrics) Descriptor() ([]byte, []int) {
573 return fileDescriptor_6039342a2ba47b72, []int{4}
574}
575
576func (m *CriticalUserJourneysMetrics) XXX_Unmarshal(b []byte) error {
577 return xxx_messageInfo_CriticalUserJourneysMetrics.Unmarshal(m, b)
578}
579func (m *CriticalUserJourneysMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
580 return xxx_messageInfo_CriticalUserJourneysMetrics.Marshal(b, m, deterministic)
581}
582func (m *CriticalUserJourneysMetrics) XXX_Merge(src proto.Message) {
583 xxx_messageInfo_CriticalUserJourneysMetrics.Merge(m, src)
584}
585func (m *CriticalUserJourneysMetrics) XXX_Size() int {
586 return xxx_messageInfo_CriticalUserJourneysMetrics.Size(m)
587}
588func (m *CriticalUserJourneysMetrics) XXX_DiscardUnknown() {
589 xxx_messageInfo_CriticalUserJourneysMetrics.DiscardUnknown(m)
590}
591
592var xxx_messageInfo_CriticalUserJourneysMetrics proto.InternalMessageInfo
593
594func (m *CriticalUserJourneysMetrics) GetCujs() []*CriticalUserJourneyMetrics {
595 if m != nil {
596 return m.Cujs
597 }
598 return nil
599}
600
Nan Zhang17f27672018-12-12 16:01:49 -0800601func init() {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700602 proto.RegisterEnum("soong_build_metrics.MetricsBase_BuildVariant", MetricsBase_BuildVariant_name, MetricsBase_BuildVariant_value)
603 proto.RegisterEnum("soong_build_metrics.MetricsBase_Arch", MetricsBase_Arch_name, MetricsBase_Arch_value)
604 proto.RegisterEnum("soong_build_metrics.ModuleTypeInfo_BuildSystem", ModuleTypeInfo_BuildSystem_name, ModuleTypeInfo_BuildSystem_value)
605 proto.RegisterType((*MetricsBase)(nil), "soong_build_metrics.MetricsBase")
606 proto.RegisterType((*PerfInfo)(nil), "soong_build_metrics.PerfInfo")
607 proto.RegisterType((*ModuleTypeInfo)(nil), "soong_build_metrics.ModuleTypeInfo")
Colin Crossd0be2102019-11-26 16:16:57 -0800608 proto.RegisterType((*CriticalUserJourneyMetrics)(nil), "soong_build_metrics.CriticalUserJourneyMetrics")
609 proto.RegisterType((*CriticalUserJourneysMetrics)(nil), "soong_build_metrics.CriticalUserJourneysMetrics")
Nan Zhang17f27672018-12-12 16:01:49 -0800610}
611
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700612func init() { proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) }
Nan Zhang17f27672018-12-12 16:01:49 -0800613
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700614var fileDescriptor_6039342a2ba47b72 = []byte{
Colin Crossd0be2102019-11-26 16:16:57 -0800615 // 834 bytes of a gzipped FileDescriptorProto
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700616 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x6f, 0x6b, 0xdb, 0x46,
Colin Crossd0be2102019-11-26 16:16:57 -0800617 0x18, 0xaf, 0x62, 0x25, 0xb6, 0x1e, 0xc5, 0xae, 0x7a, 0xc9, 0xa8, 0xba, 0x12, 0x66, 0xc4, 0x3a,
618 0xf2, 0x62, 0x75, 0x8b, 0x29, 0xa1, 0x98, 0x32, 0x48, 0x1c, 0x53, 0xba, 0x60, 0xbb, 0x28, 0x71,
619 0x57, 0xb6, 0x17, 0x87, 0x22, 0x9d, 0x1b, 0x75, 0x96, 0x4e, 0xdc, 0x9d, 0xca, 0xfc, 0x21, 0xf6,
620 0x4d, 0xf6, 0xb5, 0xf6, 0x3d, 0xc6, 0x3d, 0x27, 0x39, 0x0a, 0x78, 0x34, 0xf4, 0xdd, 0xe9, 0xf9,
621 0xfd, 0xb9, 0xdf, 0x73, 0xd2, 0x3d, 0x82, 0x6e, 0xc6, 0x94, 0x48, 0x63, 0x39, 0x28, 0x04, 0x57,
622 0x9c, 0x1c, 0x48, 0xce, 0xf3, 0x4f, 0xf4, 0xba, 0x4c, 0x57, 0x09, 0xad, 0xa0, 0xe0, 0x1f, 0x07,
623 0xdc, 0xa9, 0x59, 0x9f, 0x45, 0x92, 0x91, 0x97, 0x70, 0x68, 0x08, 0x49, 0xa4, 0x18, 0x55, 0x69,
624 0xc6, 0xa4, 0x8a, 0xb2, 0xc2, 0xb7, 0xfa, 0xd6, 0x71, 0x2b, 0x24, 0x88, 0x9d, 0x47, 0x8a, 0x5d,
625 0xd5, 0x08, 0x79, 0x02, 0x1d, 0xa3, 0x48, 0x13, 0x7f, 0xa7, 0x6f, 0x1d, 0x3b, 0x61, 0x1b, 0x9f,
626 0xdf, 0x25, 0x64, 0x04, 0x4f, 0x8a, 0x55, 0xa4, 0x96, 0x5c, 0x64, 0xf4, 0x0b, 0x13, 0x32, 0xe5,
627 0x39, 0x8d, 0x79, 0xc2, 0xf2, 0x28, 0x63, 0x7e, 0x0b, 0xb9, 0x8f, 0x6b, 0xc2, 0x07, 0x83, 0x8f,
628 0x2b, 0x98, 0x3c, 0x83, 0x9e, 0x8a, 0xc4, 0x27, 0xa6, 0x68, 0x21, 0x78, 0x52, 0xc6, 0xca, 0xb7,
629 0x51, 0xd0, 0x35, 0xd5, 0xf7, 0xa6, 0x48, 0x12, 0x38, 0xac, 0x68, 0x26, 0xc4, 0x97, 0x48, 0xa4,
630 0x51, 0xae, 0xfc, 0xdd, 0xbe, 0x75, 0xdc, 0x1b, 0x3e, 0x1f, 0x6c, 0xe9, 0x79, 0xd0, 0xe8, 0x77,
631 0x70, 0xa6, 0x91, 0x0f, 0x46, 0x34, 0x6a, 0x4d, 0x66, 0x6f, 0x43, 0x62, 0xfc, 0x9a, 0x00, 0x99,
632 0x83, 0x5b, 0xed, 0x12, 0x89, 0xf8, 0xc6, 0xdf, 0x43, 0xf3, 0x67, 0x5f, 0x35, 0x3f, 0x15, 0xf1,
633 0xcd, 0xa8, 0xbd, 0x98, 0x5d, 0xcc, 0xe6, 0xbf, 0xcd, 0x42, 0x30, 0x16, 0xba, 0x48, 0x06, 0x70,
634 0xd0, 0x30, 0xdc, 0xa4, 0x6e, 0x63, 0x8b, 0x8f, 0x6e, 0x89, 0x75, 0x80, 0x9f, 0xa1, 0x8a, 0x45,
635 0xe3, 0xa2, 0xdc, 0xd0, 0x3b, 0x48, 0xf7, 0x0c, 0x32, 0x2e, 0xca, 0x9a, 0x7d, 0x01, 0xce, 0x0d,
636 0x97, 0x55, 0x58, 0xe7, 0x9b, 0xc2, 0x76, 0xb4, 0x01, 0x46, 0x0d, 0xa1, 0x8b, 0x66, 0xc3, 0x3c,
637 0x31, 0x86, 0xf0, 0x4d, 0x86, 0xae, 0x36, 0x19, 0xe6, 0x09, 0x7a, 0x3e, 0x86, 0x36, 0x7a, 0x72,
638 0xe9, 0xbb, 0xd8, 0xc3, 0x9e, 0x7e, 0x9c, 0x4b, 0x12, 0x54, 0x9b, 0x71, 0x49, 0xd9, 0x5f, 0x4a,
639 0x44, 0xfe, 0x3e, 0xc2, 0xae, 0x81, 0x27, 0xba, 0xb4, 0xe1, 0xc4, 0x82, 0x4b, 0xa9, 0x2d, 0xba,
640 0xb7, 0x9c, 0xb1, 0xae, 0xcd, 0x25, 0xf9, 0x09, 0x1e, 0x36, 0x38, 0x18, 0xbb, 0x67, 0x3e, 0x9f,
641 0x0d, 0x0b, 0x83, 0x3c, 0x87, 0x83, 0x06, 0x6f, 0xd3, 0xe2, 0x43, 0x73, 0xb0, 0x1b, 0x6e, 0x23,
642 0x37, 0x2f, 0x15, 0x4d, 0x52, 0xe1, 0x7b, 0x26, 0x37, 0x2f, 0xd5, 0x79, 0x2a, 0xc8, 0x2f, 0xe0,
643 0x4a, 0xa6, 0xca, 0x82, 0x2a, 0xce, 0x57, 0xd2, 0x7f, 0xd4, 0x6f, 0x1d, 0xbb, 0xc3, 0xa3, 0xad,
644 0x47, 0xf4, 0x9e, 0x89, 0xe5, 0xbb, 0x7c, 0xc9, 0x43, 0x40, 0xc5, 0x95, 0x16, 0x90, 0x11, 0x38,
645 0x7f, 0x46, 0x2a, 0xa5, 0xa2, 0xcc, 0xa5, 0x4f, 0xee, 0xa3, 0xee, 0x68, 0x7e, 0x58, 0xe6, 0x92,
646 0xbc, 0x01, 0x30, 0x4c, 0x14, 0x1f, 0xdc, 0x47, 0xec, 0x20, 0x5a, 0xab, 0xf3, 0x34, 0xff, 0x1c,
647 0x19, 0xf5, 0xe1, 0xbd, 0xd4, 0x28, 0xd0, 0xea, 0xe0, 0x25, 0xec, 0xdf, 0xb9, 0x28, 0x1d, 0xb0,
648 0x17, 0x97, 0x93, 0xd0, 0x7b, 0x40, 0xba, 0xe0, 0xe8, 0xd5, 0xf9, 0xe4, 0x6c, 0xf1, 0xd6, 0xb3,
649 0x48, 0x1b, 0xf4, 0xe5, 0xf2, 0x76, 0x82, 0x37, 0x60, 0xe3, 0x51, 0xba, 0x50, 0x7f, 0x1a, 0xde,
650 0x03, 0x8d, 0x9e, 0x86, 0x53, 0xcf, 0x22, 0x0e, 0xec, 0x9e, 0x86, 0xd3, 0x93, 0x57, 0xde, 0x8e,
651 0xae, 0x7d, 0x7c, 0x7d, 0xe2, 0xb5, 0x08, 0xc0, 0xde, 0xc7, 0xd7, 0x27, 0xf4, 0xe4, 0x95, 0x67,
652 0x07, 0x7f, 0x5b, 0xd0, 0xa9, 0x73, 0x10, 0x02, 0x76, 0xc2, 0x64, 0x8c, 0xb3, 0xc9, 0x09, 0x71,
653 0xad, 0x6b, 0x38, 0x5d, 0xcc, 0x24, 0xc2, 0x35, 0x39, 0x02, 0x90, 0x2a, 0x12, 0x0a, 0xc7, 0x19,
654 0xce, 0x1d, 0x3b, 0x74, 0xb0, 0xa2, 0xa7, 0x18, 0x79, 0x0a, 0x8e, 0x60, 0xd1, 0xca, 0xa0, 0x36,
655 0xa2, 0x1d, 0x5d, 0x40, 0xf0, 0x08, 0x20, 0x63, 0x19, 0x17, 0x6b, 0x5a, 0x4a, 0x86, 0x53, 0xc5,
656 0x0e, 0x1d, 0x53, 0x59, 0x48, 0x16, 0xfc, 0x6b, 0x41, 0x6f, 0xca, 0x93, 0x72, 0xc5, 0xae, 0xd6,
657 0x05, 0xc3, 0x54, 0x7f, 0xc0, 0xbe, 0x39, 0x37, 0xb9, 0x96, 0x8a, 0x65, 0x98, 0xae, 0x37, 0x7c,
658 0xb1, 0xfd, 0xba, 0xdc, 0x91, 0x9a, 0x61, 0x74, 0x89, 0xb2, 0xc6, 0xc5, 0xb9, 0xbe, 0xad, 0x92,
659 0x1f, 0xc0, 0xcd, 0x50, 0x43, 0xd5, 0xba, 0xa8, 0xbb, 0x84, 0x6c, 0x63, 0x43, 0x7e, 0x84, 0x5e,
660 0x5e, 0x66, 0x94, 0x2f, 0xa9, 0x29, 0x4a, 0xec, 0xb7, 0x1b, 0xee, 0xe7, 0x65, 0x36, 0x5f, 0x9a,
661 0xfd, 0x64, 0xf0, 0x02, 0xdc, 0xc6, 0x5e, 0x77, 0xdf, 0x85, 0x03, 0xbb, 0x97, 0xf3, 0xf9, 0x4c,
662 0xbf, 0xb4, 0x0e, 0xd8, 0xd3, 0xd3, 0x8b, 0x89, 0xb7, 0x13, 0xac, 0xe0, 0xfb, 0xb1, 0x48, 0x55,
663 0x1a, 0x47, 0xab, 0x85, 0x64, 0xe2, 0x57, 0x5e, 0x8a, 0x9c, 0xad, 0xab, 0xdb, 0xbe, 0x39, 0x74,
664 0xab, 0x71, 0xe8, 0x23, 0x68, 0x57, 0x5d, 0x62, 0x4a, 0x77, 0xd8, 0xff, 0xda, 0xc0, 0x08, 0x6b,
665 0x41, 0x70, 0x0d, 0x4f, 0xb7, 0xec, 0x26, 0xeb, 0xed, 0xc6, 0x60, 0xc7, 0xe5, 0x67, 0xe9, 0x5b,
666 0xf8, 0xb1, 0x6e, 0x3f, 0xd9, 0xff, 0x4f, 0x1b, 0xa2, 0xf8, 0xec, 0xbb, 0xdf, 0xab, 0xff, 0x61,
667 0xa5, 0xa0, 0xf8, 0x93, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x20, 0x07, 0xbc, 0xf0, 0x34, 0x07,
668 0x00, 0x00,
Nan Zhang17f27672018-12-12 16:01:49 -0800669}