blob: 3986d0efdcac6b5da0e3aaa23992f74c8e862bbe [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.
Colin Cross74cda722020-01-16 15:25:50 -0800198 NinjaRuns []*PerfInfo `protobuf:"bytes,20,rep,name=ninja_runs,json=ninjaRuns" json:"ninja_runs,omitempty"`
199 // The metrics for the whole build
200 Total *PerfInfo `protobuf:"bytes,21,opt,name=total" json:"total,omitempty"`
201 XXX_NoUnkeyedLiteral struct{} `json:"-"`
202 XXX_unrecognized []byte `json:"-"`
203 XXX_sizecache int32 `json:"-"`
Nan Zhang17f27672018-12-12 16:01:49 -0800204}
205
206func (m *MetricsBase) Reset() { *m = MetricsBase{} }
207func (m *MetricsBase) String() string { return proto.CompactTextString(m) }
208func (*MetricsBase) ProtoMessage() {}
209func (*MetricsBase) Descriptor() ([]byte, []int) {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700210 return fileDescriptor_6039342a2ba47b72, []int{0}
Nan Zhang17f27672018-12-12 16:01:49 -0800211}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700212
Nan Zhang17f27672018-12-12 16:01:49 -0800213func (m *MetricsBase) XXX_Unmarshal(b []byte) error {
214 return xxx_messageInfo_MetricsBase.Unmarshal(m, b)
215}
216func (m *MetricsBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
217 return xxx_messageInfo_MetricsBase.Marshal(b, m, deterministic)
218}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700219func (m *MetricsBase) XXX_Merge(src proto.Message) {
220 xxx_messageInfo_MetricsBase.Merge(m, src)
Nan Zhang17f27672018-12-12 16:01:49 -0800221}
222func (m *MetricsBase) XXX_Size() int {
223 return xxx_messageInfo_MetricsBase.Size(m)
224}
225func (m *MetricsBase) XXX_DiscardUnknown() {
226 xxx_messageInfo_MetricsBase.DiscardUnknown(m)
227}
228
229var xxx_messageInfo_MetricsBase proto.InternalMessageInfo
230
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700231const Default_MetricsBase_TargetBuildVariant MetricsBase_BuildVariant = MetricsBase_ENG
232const Default_MetricsBase_TargetArch MetricsBase_Arch = MetricsBase_UNKNOWN
233const Default_MetricsBase_HostArch MetricsBase_Arch = MetricsBase_UNKNOWN
234const Default_MetricsBase_Host_2NdArch MetricsBase_Arch = MetricsBase_UNKNOWN
Nan Zhang17f27672018-12-12 16:01:49 -0800235
236func (m *MetricsBase) GetBuildDateTimestamp() int64 {
237 if m != nil && m.BuildDateTimestamp != nil {
238 return *m.BuildDateTimestamp
239 }
240 return 0
241}
242
243func (m *MetricsBase) GetBuildId() string {
244 if m != nil && m.BuildId != nil {
245 return *m.BuildId
246 }
247 return ""
248}
249
250func (m *MetricsBase) GetPlatformVersionCodename() string {
251 if m != nil && m.PlatformVersionCodename != nil {
252 return *m.PlatformVersionCodename
253 }
254 return ""
255}
256
257func (m *MetricsBase) GetTargetProduct() string {
258 if m != nil && m.TargetProduct != nil {
259 return *m.TargetProduct
260 }
261 return ""
262}
263
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700264func (m *MetricsBase) GetTargetBuildVariant() MetricsBase_BuildVariant {
Nan Zhang17f27672018-12-12 16:01:49 -0800265 if m != nil && m.TargetBuildVariant != nil {
266 return *m.TargetBuildVariant
267 }
268 return Default_MetricsBase_TargetBuildVariant
269}
270
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700271func (m *MetricsBase) GetTargetArch() MetricsBase_Arch {
Nan Zhang17f27672018-12-12 16:01:49 -0800272 if m != nil && m.TargetArch != nil {
273 return *m.TargetArch
274 }
275 return Default_MetricsBase_TargetArch
276}
277
278func (m *MetricsBase) GetTargetArchVariant() string {
279 if m != nil && m.TargetArchVariant != nil {
280 return *m.TargetArchVariant
281 }
282 return ""
283}
284
285func (m *MetricsBase) GetTargetCpuVariant() string {
286 if m != nil && m.TargetCpuVariant != nil {
287 return *m.TargetCpuVariant
288 }
289 return ""
290}
291
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700292func (m *MetricsBase) GetHostArch() MetricsBase_Arch {
Nan Zhang17f27672018-12-12 16:01:49 -0800293 if m != nil && m.HostArch != nil {
294 return *m.HostArch
295 }
296 return Default_MetricsBase_HostArch
297}
298
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700299func (m *MetricsBase) GetHost_2NdArch() MetricsBase_Arch {
Nan Zhang17f27672018-12-12 16:01:49 -0800300 if m != nil && m.Host_2NdArch != nil {
301 return *m.Host_2NdArch
302 }
303 return Default_MetricsBase_Host_2NdArch
304}
305
306func (m *MetricsBase) GetHostOs() string {
307 if m != nil && m.HostOs != nil {
308 return *m.HostOs
309 }
310 return ""
311}
312
313func (m *MetricsBase) GetHostOsExtra() string {
314 if m != nil && m.HostOsExtra != nil {
315 return *m.HostOsExtra
316 }
317 return ""
318}
319
320func (m *MetricsBase) GetHostCrossOs() string {
321 if m != nil && m.HostCrossOs != nil {
322 return *m.HostCrossOs
323 }
324 return ""
325}
326
327func (m *MetricsBase) GetHostCrossArch() string {
328 if m != nil && m.HostCrossArch != nil {
329 return *m.HostCrossArch
330 }
331 return ""
332}
333
334func (m *MetricsBase) GetHostCross_2NdArch() string {
335 if m != nil && m.HostCross_2NdArch != nil {
336 return *m.HostCross_2NdArch
337 }
338 return ""
339}
340
341func (m *MetricsBase) GetOutDir() string {
342 if m != nil && m.OutDir != nil {
343 return *m.OutDir
344 }
345 return ""
346}
347
348func (m *MetricsBase) GetSetupTools() []*PerfInfo {
349 if m != nil {
350 return m.SetupTools
351 }
352 return nil
353}
354
355func (m *MetricsBase) GetKatiRuns() []*PerfInfo {
356 if m != nil {
357 return m.KatiRuns
358 }
359 return nil
360}
361
362func (m *MetricsBase) GetSoongRuns() []*PerfInfo {
363 if m != nil {
364 return m.SoongRuns
365 }
366 return nil
367}
368
369func (m *MetricsBase) GetNinjaRuns() []*PerfInfo {
370 if m != nil {
371 return m.NinjaRuns
372 }
373 return nil
374}
375
Colin Cross74cda722020-01-16 15:25:50 -0800376func (m *MetricsBase) GetTotal() *PerfInfo {
377 if m != nil {
378 return m.Total
379 }
380 return nil
381}
382
Nan Zhang17f27672018-12-12 16:01:49 -0800383type PerfInfo struct {
384 // The description for the phase/action/part while the tool running.
385 Desc *string `protobuf:"bytes,1,opt,name=desc" json:"desc,omitempty"`
386 // The name for the running phase/action/part.
387 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
388 // The absolute start time.
389 // The number of nanoseconds elapsed since January 1, 1970 UTC.
390 StartTime *uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
391 // The real running time.
392 // The number of nanoseconds elapsed since start_time.
393 RealTime *uint64 `protobuf:"varint,4,opt,name=real_time,json=realTime" json:"real_time,omitempty"`
394 // The number of MB for memory use.
395 MemoryUse *uint64 `protobuf:"varint,5,opt,name=memory_use,json=memoryUse" json:"memory_use,omitempty"`
396 XXX_NoUnkeyedLiteral struct{} `json:"-"`
397 XXX_unrecognized []byte `json:"-"`
398 XXX_sizecache int32 `json:"-"`
399}
400
401func (m *PerfInfo) Reset() { *m = PerfInfo{} }
402func (m *PerfInfo) String() string { return proto.CompactTextString(m) }
403func (*PerfInfo) ProtoMessage() {}
404func (*PerfInfo) Descriptor() ([]byte, []int) {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700405 return fileDescriptor_6039342a2ba47b72, []int{1}
Nan Zhang17f27672018-12-12 16:01:49 -0800406}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700407
Nan Zhang17f27672018-12-12 16:01:49 -0800408func (m *PerfInfo) XXX_Unmarshal(b []byte) error {
409 return xxx_messageInfo_PerfInfo.Unmarshal(m, b)
410}
411func (m *PerfInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
412 return xxx_messageInfo_PerfInfo.Marshal(b, m, deterministic)
413}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700414func (m *PerfInfo) XXX_Merge(src proto.Message) {
415 xxx_messageInfo_PerfInfo.Merge(m, src)
Nan Zhang17f27672018-12-12 16:01:49 -0800416}
417func (m *PerfInfo) XXX_Size() int {
418 return xxx_messageInfo_PerfInfo.Size(m)
419}
420func (m *PerfInfo) XXX_DiscardUnknown() {
421 xxx_messageInfo_PerfInfo.DiscardUnknown(m)
422}
423
424var xxx_messageInfo_PerfInfo proto.InternalMessageInfo
425
426func (m *PerfInfo) GetDesc() string {
427 if m != nil && m.Desc != nil {
428 return *m.Desc
429 }
430 return ""
431}
432
433func (m *PerfInfo) GetName() string {
434 if m != nil && m.Name != nil {
435 return *m.Name
436 }
437 return ""
438}
439
440func (m *PerfInfo) GetStartTime() uint64 {
441 if m != nil && m.StartTime != nil {
442 return *m.StartTime
443 }
444 return 0
445}
446
447func (m *PerfInfo) GetRealTime() uint64 {
448 if m != nil && m.RealTime != nil {
449 return *m.RealTime
450 }
451 return 0
452}
453
454func (m *PerfInfo) GetMemoryUse() uint64 {
455 if m != nil && m.MemoryUse != nil {
456 return *m.MemoryUse
457 }
458 return 0
459}
460
461type ModuleTypeInfo struct {
462 // The build system, eg. Soong or Make.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700463 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 -0800464 // The module type, eg. java_library, cc_binary, and etc.
465 ModuleType *string `protobuf:"bytes,2,opt,name=module_type,json=moduleType" json:"module_type,omitempty"`
466 // The number of logical modules.
467 NumOfModules *uint32 `protobuf:"varint,3,opt,name=num_of_modules,json=numOfModules" json:"num_of_modules,omitempty"`
468 XXX_NoUnkeyedLiteral struct{} `json:"-"`
469 XXX_unrecognized []byte `json:"-"`
470 XXX_sizecache int32 `json:"-"`
471}
472
473func (m *ModuleTypeInfo) Reset() { *m = ModuleTypeInfo{} }
474func (m *ModuleTypeInfo) String() string { return proto.CompactTextString(m) }
475func (*ModuleTypeInfo) ProtoMessage() {}
476func (*ModuleTypeInfo) Descriptor() ([]byte, []int) {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700477 return fileDescriptor_6039342a2ba47b72, []int{2}
Nan Zhang17f27672018-12-12 16:01:49 -0800478}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700479
Nan Zhang17f27672018-12-12 16:01:49 -0800480func (m *ModuleTypeInfo) XXX_Unmarshal(b []byte) error {
481 return xxx_messageInfo_ModuleTypeInfo.Unmarshal(m, b)
482}
483func (m *ModuleTypeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
484 return xxx_messageInfo_ModuleTypeInfo.Marshal(b, m, deterministic)
485}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700486func (m *ModuleTypeInfo) XXX_Merge(src proto.Message) {
487 xxx_messageInfo_ModuleTypeInfo.Merge(m, src)
Nan Zhang17f27672018-12-12 16:01:49 -0800488}
489func (m *ModuleTypeInfo) XXX_Size() int {
490 return xxx_messageInfo_ModuleTypeInfo.Size(m)
491}
492func (m *ModuleTypeInfo) XXX_DiscardUnknown() {
493 xxx_messageInfo_ModuleTypeInfo.DiscardUnknown(m)
494}
495
496var xxx_messageInfo_ModuleTypeInfo proto.InternalMessageInfo
497
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700498const Default_ModuleTypeInfo_BuildSystem ModuleTypeInfo_BuildSystem = ModuleTypeInfo_UNKNOWN
Nan Zhang17f27672018-12-12 16:01:49 -0800499
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700500func (m *ModuleTypeInfo) GetBuildSystem() ModuleTypeInfo_BuildSystem {
Nan Zhang17f27672018-12-12 16:01:49 -0800501 if m != nil && m.BuildSystem != nil {
502 return *m.BuildSystem
503 }
504 return Default_ModuleTypeInfo_BuildSystem
505}
506
507func (m *ModuleTypeInfo) GetModuleType() string {
508 if m != nil && m.ModuleType != nil {
509 return *m.ModuleType
510 }
511 return ""
512}
513
514func (m *ModuleTypeInfo) GetNumOfModules() uint32 {
515 if m != nil && m.NumOfModules != nil {
516 return *m.NumOfModules
517 }
518 return 0
519}
520
Colin Crossd0be2102019-11-26 16:16:57 -0800521type CriticalUserJourneyMetrics struct {
522 // The name of a critical user journey test.
523 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
524 // The metrics produced when running the critical user journey test.
525 Metrics *MetricsBase `protobuf:"bytes,2,opt,name=metrics" json:"metrics,omitempty"`
526 XXX_NoUnkeyedLiteral struct{} `json:"-"`
527 XXX_unrecognized []byte `json:"-"`
528 XXX_sizecache int32 `json:"-"`
529}
530
531func (m *CriticalUserJourneyMetrics) Reset() { *m = CriticalUserJourneyMetrics{} }
532func (m *CriticalUserJourneyMetrics) String() string { return proto.CompactTextString(m) }
533func (*CriticalUserJourneyMetrics) ProtoMessage() {}
534func (*CriticalUserJourneyMetrics) Descriptor() ([]byte, []int) {
535 return fileDescriptor_6039342a2ba47b72, []int{3}
536}
537
538func (m *CriticalUserJourneyMetrics) XXX_Unmarshal(b []byte) error {
539 return xxx_messageInfo_CriticalUserJourneyMetrics.Unmarshal(m, b)
540}
541func (m *CriticalUserJourneyMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
542 return xxx_messageInfo_CriticalUserJourneyMetrics.Marshal(b, m, deterministic)
543}
544func (m *CriticalUserJourneyMetrics) XXX_Merge(src proto.Message) {
545 xxx_messageInfo_CriticalUserJourneyMetrics.Merge(m, src)
546}
547func (m *CriticalUserJourneyMetrics) XXX_Size() int {
548 return xxx_messageInfo_CriticalUserJourneyMetrics.Size(m)
549}
550func (m *CriticalUserJourneyMetrics) XXX_DiscardUnknown() {
551 xxx_messageInfo_CriticalUserJourneyMetrics.DiscardUnknown(m)
552}
553
554var xxx_messageInfo_CriticalUserJourneyMetrics proto.InternalMessageInfo
555
556func (m *CriticalUserJourneyMetrics) GetName() string {
557 if m != nil && m.Name != nil {
558 return *m.Name
559 }
560 return ""
561}
562
563func (m *CriticalUserJourneyMetrics) GetMetrics() *MetricsBase {
564 if m != nil {
565 return m.Metrics
566 }
567 return nil
568}
569
570type CriticalUserJourneysMetrics struct {
571 // A set of metrics from a run of the critical user journey tests.
572 Cujs []*CriticalUserJourneyMetrics `protobuf:"bytes,1,rep,name=cujs" json:"cujs,omitempty"`
573 XXX_NoUnkeyedLiteral struct{} `json:"-"`
574 XXX_unrecognized []byte `json:"-"`
575 XXX_sizecache int32 `json:"-"`
576}
577
578func (m *CriticalUserJourneysMetrics) Reset() { *m = CriticalUserJourneysMetrics{} }
579func (m *CriticalUserJourneysMetrics) String() string { return proto.CompactTextString(m) }
580func (*CriticalUserJourneysMetrics) ProtoMessage() {}
581func (*CriticalUserJourneysMetrics) Descriptor() ([]byte, []int) {
582 return fileDescriptor_6039342a2ba47b72, []int{4}
583}
584
585func (m *CriticalUserJourneysMetrics) XXX_Unmarshal(b []byte) error {
586 return xxx_messageInfo_CriticalUserJourneysMetrics.Unmarshal(m, b)
587}
588func (m *CriticalUserJourneysMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
589 return xxx_messageInfo_CriticalUserJourneysMetrics.Marshal(b, m, deterministic)
590}
591func (m *CriticalUserJourneysMetrics) XXX_Merge(src proto.Message) {
592 xxx_messageInfo_CriticalUserJourneysMetrics.Merge(m, src)
593}
594func (m *CriticalUserJourneysMetrics) XXX_Size() int {
595 return xxx_messageInfo_CriticalUserJourneysMetrics.Size(m)
596}
597func (m *CriticalUserJourneysMetrics) XXX_DiscardUnknown() {
598 xxx_messageInfo_CriticalUserJourneysMetrics.DiscardUnknown(m)
599}
600
601var xxx_messageInfo_CriticalUserJourneysMetrics proto.InternalMessageInfo
602
603func (m *CriticalUserJourneysMetrics) GetCujs() []*CriticalUserJourneyMetrics {
604 if m != nil {
605 return m.Cujs
606 }
607 return nil
608}
609
Nan Zhang17f27672018-12-12 16:01:49 -0800610func init() {
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700611 proto.RegisterEnum("soong_build_metrics.MetricsBase_BuildVariant", MetricsBase_BuildVariant_name, MetricsBase_BuildVariant_value)
612 proto.RegisterEnum("soong_build_metrics.MetricsBase_Arch", MetricsBase_Arch_name, MetricsBase_Arch_value)
613 proto.RegisterEnum("soong_build_metrics.ModuleTypeInfo_BuildSystem", ModuleTypeInfo_BuildSystem_name, ModuleTypeInfo_BuildSystem_value)
614 proto.RegisterType((*MetricsBase)(nil), "soong_build_metrics.MetricsBase")
615 proto.RegisterType((*PerfInfo)(nil), "soong_build_metrics.PerfInfo")
616 proto.RegisterType((*ModuleTypeInfo)(nil), "soong_build_metrics.ModuleTypeInfo")
Colin Crossd0be2102019-11-26 16:16:57 -0800617 proto.RegisterType((*CriticalUserJourneyMetrics)(nil), "soong_build_metrics.CriticalUserJourneyMetrics")
618 proto.RegisterType((*CriticalUserJourneysMetrics)(nil), "soong_build_metrics.CriticalUserJourneysMetrics")
Nan Zhang17f27672018-12-12 16:01:49 -0800619}
620
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700621func init() { proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) }
Nan Zhang17f27672018-12-12 16:01:49 -0800622
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700623var fileDescriptor_6039342a2ba47b72 = []byte{
Colin Cross74cda722020-01-16 15:25:50 -0800624 // 847 bytes of a gzipped FileDescriptorProto
625 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xdd, 0x6e, 0xdb, 0x36,
626 0x14, 0xae, 0x12, 0x25, 0xb6, 0x8e, 0x62, 0x57, 0x65, 0x52, 0x54, 0x5d, 0x11, 0xcc, 0x10, 0xd6,
627 0x21, 0x17, 0xab, 0x5b, 0x78, 0x45, 0x50, 0x18, 0xc5, 0x80, 0xc4, 0x31, 0x8a, 0x2e, 0xb0, 0x5d,
628 0x28, 0x71, 0x57, 0x6c, 0x17, 0x02, 0x23, 0xd1, 0x8d, 0x3a, 0x4b, 0x14, 0x48, 0xaa, 0x98, 0x1f,
629 0x62, 0x0f, 0xb9, 0x8b, 0xbd, 0xc7, 0xc0, 0x43, 0xc9, 0x51, 0x00, 0x0f, 0x09, 0x7a, 0x47, 0x9d,
630 0xef, 0x87, 0xdf, 0xa1, 0xc4, 0x23, 0xe8, 0x64, 0x4c, 0x89, 0x34, 0x96, 0xfd, 0x42, 0x70, 0xc5,
631 0xc9, 0xbe, 0xe4, 0x3c, 0xff, 0x1c, 0x5d, 0x95, 0xe9, 0x32, 0x89, 0x2a, 0x28, 0xf8, 0xc7, 0x01,
632 0x77, 0x62, 0xd6, 0xa7, 0x54, 0x32, 0xf2, 0x0a, 0x0e, 0x0c, 0x21, 0xa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 0x14,
644 0x17, 0xe5, 0x9a, 0xde, 0x46, 0xba, 0x67, 0x90, 0x51, 0x51, 0xd6, 0xec, 0x73, 0x70, 0xae, 0xb9,
645 0xac, 0xc2, 0x3a, 0xdf, 0x14, 0xb6, 0xad, 0x0d, 0x30, 0x6a, 0x08, 0x1d, 0x34, 0x1b, 0xe4, 0x89,
646 0x31, 0x84, 0x6f, 0x32, 0x74, 0xb5, 0xc9, 0x20, 0x4f, 0xd0, 0xf3, 0x09, 0xb4, 0xd0, 0x93, 0x4b,
647 0xdf, 0xc5, 0x1e, 0x76, 0xf5, 0xe3, 0x4c, 0x92, 0xa0, 0xda, 0x8c, 0xcb, 0x88, 0xfd, 0xa5, 0x04,
648 0xf5, 0xf7, 0x10, 0x76, 0x0d, 0x3c, 0xd6, 0xa5, 0x35, 0x27, 0x16, 0x5c, 0x4a, 0x6d, 0xd1, 0xb9,
649 0xe1, 0x8c, 0x74, 0x6d, 0x26, 0xc9, 0x8f, 0xf0, 0xb0, 0xc1, 0xc1, 0xd8, 0x5d, 0xf3, 0xf9, 0xac,
650 0x59, 0x18, 0xe4, 0x05, 0xec, 0x37, 0x78, 0xeb, 0x16, 0x1f, 0x9a, 0x83, 0x5d, 0x73, 0x1b, 0xb9,
651 0x79, 0xa9, 0xa2, 0x24, 0x15, 0xbe, 0x67, 0x72, 0xf3, 0x52, 0x9d, 0xa5, 0x82, 0xfc, 0x02, 0xae,
652 0x64, 0xaa, 0x2c, 0x22, 0xc5, 0xf9, 0x52, 0xfa, 0x8f, 0x7a, 0xdb, 0x47, 0xee, 0xe0, 0x70, 0xe3,
653 0x11, 0x7d, 0x60, 0x62, 0xf1, 0x3e, 0x5f, 0xf0, 0x10, 0x50, 0x71, 0xa9, 0x05, 0x64, 0x08, 0xce,
654 0x9f, 0x54, 0xa5, 0x91, 0x28, 0x73, 0xe9, 0x93, 0xfb, 0xa8, 0xdb, 0x9a, 0x1f, 0x96, 0xb9, 0x24,
655 0x6f, 0x01, 0x0c, 0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x69, 0x07, 0x00, 0x00,
Nan Zhang17f27672018-12-12 16:01:49 -0800678}