ninjaproto

package
v0.0.0-...-e560ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NinjaTask_OS_name = map[int32]string{
	0: "UNKNOWN",
	1: "WIN",
	2: "LINUX",
	3: "MAC",
}
View Source
var NinjaTask_OS_value = map[string]int32{
	"UNKNOWN": 0,
	"WIN":     1,
	"LINUX":   2,
	"MAC":     3,
}

Functions

This section is empty.

Types

type NinjaTask

type NinjaTask struct {
	// Identifier of build used in buildbucket api v2 (go/buildbucket-api-v2)
	// Or some random number representing an invocation of build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// Build targets passed to ninja.
	Targets []string `protobuf:"bytes,8,rep,name=targets,proto3" json:"targets,omitempty"`
	// Step name to distinguish multiple compile steps in a build.
	// This is not used when ninja_log is uploaded from chromium developers.
	StepName string `protobuf:"bytes,2,opt,name=step_name,json=stepName,proto3" json:"step_name,omitempty"`
	// ninja’s -j value
	Jobs int64        `protobuf:"varint,3,opt,name=jobs,proto3" json:"jobs,omitempty"`
	Os   NinjaTask_OS `protobuf:"varint,11,opt,name=os,proto3,enum=ninjaproto.NinjaTask_OS" json:"os,omitempty"`
	// The number of cpu cores.
	CpuCore      int32                 `protobuf:"varint,12,opt,name=cpu_core,json=cpuCore,proto3" json:"cpu_core,omitempty"`
	BuildConfigs []*NinjaTask_KeyValue `protobuf:"bytes,13,rep,name=build_configs,json=buildConfigs,proto3" json:"build_configs,omitempty"`
	LogEntry     *NinjaTask_LogEntry   `protobuf:"bytes,4,opt,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"`
	// Weighted build time. This lets us know less parallelized slow build tasks.
	// More details in https://chromium.googlesource.com/chromium/tools/depot_tools/+/5888d6f676722fdac3f65e673c0232667309296c/post_build_ninja_summary.py#52
	// We don't use "google.protobuf.Duration" here in order to make it a bit easier to write a query.
	WeightedDurationSec float64 `protobuf:"fixed64,6,opt,name=weighted_duration_sec,json=weightedDurationSec,proto3" json:"weighted_duration_sec,omitempty"`
	// created_at indicates the timestamp when the NinjaTask is uploaded to BigQuery.
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

NinjaTask message for the log uploaded from chromium developers or buildbot. Due to row size limit (1MB) of BigQuery streaming insert, this message corresponds to the one task of ninja_log. NEXT ID TO USE: 14

func (*NinjaTask) Descriptor

func (*NinjaTask) Descriptor() ([]byte, []int)

func (*NinjaTask) GetBuildConfigs

func (m *NinjaTask) GetBuildConfigs() []*NinjaTask_KeyValue

func (*NinjaTask) GetBuildId

func (m *NinjaTask) GetBuildId() int64

func (*NinjaTask) GetCpuCore

func (m *NinjaTask) GetCpuCore() int32

func (*NinjaTask) GetCreatedAt

func (m *NinjaTask) GetCreatedAt() *timestamp.Timestamp

func (*NinjaTask) GetJobs

func (m *NinjaTask) GetJobs() int64

func (*NinjaTask) GetLogEntry

func (m *NinjaTask) GetLogEntry() *NinjaTask_LogEntry

func (*NinjaTask) GetOs

func (m *NinjaTask) GetOs() NinjaTask_OS

func (*NinjaTask) GetStepName

func (m *NinjaTask) GetStepName() string

func (*NinjaTask) GetTargets

func (m *NinjaTask) GetTargets() []string

func (*NinjaTask) GetWeightedDurationSec

func (m *NinjaTask) GetWeightedDurationSec() float64

func (*NinjaTask) ProtoMessage

func (*NinjaTask) ProtoMessage()

func (*NinjaTask) Reset

func (m *NinjaTask) Reset()

func (*NinjaTask) String

func (m *NinjaTask) String() string

func (*NinjaTask) XXX_DiscardUnknown

func (m *NinjaTask) XXX_DiscardUnknown()

func (*NinjaTask) XXX_Marshal

func (m *NinjaTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NinjaTask) XXX_Merge

func (m *NinjaTask) XXX_Merge(src proto.Message)

func (*NinjaTask) XXX_Size

func (m *NinjaTask) XXX_Size() int

func (*NinjaTask) XXX_Unmarshal

func (m *NinjaTask) XXX_Unmarshal(b []byte) error

type NinjaTask_KeyValue

type NinjaTask_KeyValue struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Content of whitelisted args.gn.

func (*NinjaTask_KeyValue) Descriptor

func (*NinjaTask_KeyValue) Descriptor() ([]byte, []int)

func (*NinjaTask_KeyValue) GetKey

func (m *NinjaTask_KeyValue) GetKey() string

func (*NinjaTask_KeyValue) GetValue

func (m *NinjaTask_KeyValue) GetValue() string

func (*NinjaTask_KeyValue) ProtoMessage

func (*NinjaTask_KeyValue) ProtoMessage()

func (*NinjaTask_KeyValue) Reset

func (m *NinjaTask_KeyValue) Reset()

func (*NinjaTask_KeyValue) String

func (m *NinjaTask_KeyValue) String() string

func (*NinjaTask_KeyValue) XXX_DiscardUnknown

func (m *NinjaTask_KeyValue) XXX_DiscardUnknown()

func (*NinjaTask_KeyValue) XXX_Marshal

func (m *NinjaTask_KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NinjaTask_KeyValue) XXX_Merge

func (m *NinjaTask_KeyValue) XXX_Merge(src proto.Message)

func (*NinjaTask_KeyValue) XXX_Size

func (m *NinjaTask_KeyValue) XXX_Size() int

func (*NinjaTask_KeyValue) XXX_Unmarshal

func (m *NinjaTask_KeyValue) XXX_Unmarshal(b []byte) error

type NinjaTask_LogEntry

type NinjaTask_LogEntry struct {
	// Output filenames of task grouped by command_hash.
	Outputs []string `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// Hash of running command.
	CommandHash string `protobuf:"bytes,2,opt,name=command_hash,json=commandHash,proto3" json:"command_hash,omitempty"`
	// Duration between the time starting task and the time when ninja started.
	// We don't use "google.protobuf.Duration" here in order to make it a bit easier to write a query.
	StartDurationSec float64 `protobuf:"fixed64,5,opt,name=start_duration_sec,json=startDurationSec,proto3" json:"start_duration_sec,omitempty"`
	// Duration between the time ending task and the time when ninja started.
	// We don't use "google.protobuf.Duration" here in order to make it a bit easier to write a query.
	EndDurationSec       float64  `protobuf:"fixed64,6,opt,name=end_duration_sec,json=endDurationSec,proto3" json:"end_duration_sec,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Ninja log entry. https://github.com/ninja-build/ninja/blob/265a6eaf399778c746c7d2c02b8742f3c0ff07e9/src/build_log.h#L54

func (*NinjaTask_LogEntry) Descriptor

func (*NinjaTask_LogEntry) Descriptor() ([]byte, []int)

func (*NinjaTask_LogEntry) GetCommandHash

func (m *NinjaTask_LogEntry) GetCommandHash() string

func (*NinjaTask_LogEntry) GetEndDurationSec

func (m *NinjaTask_LogEntry) GetEndDurationSec() float64

func (*NinjaTask_LogEntry) GetOutputs

func (m *NinjaTask_LogEntry) GetOutputs() []string

func (*NinjaTask_LogEntry) GetStartDurationSec

func (m *NinjaTask_LogEntry) GetStartDurationSec() float64

func (*NinjaTask_LogEntry) ProtoMessage

func (*NinjaTask_LogEntry) ProtoMessage()

func (*NinjaTask_LogEntry) Reset

func (m *NinjaTask_LogEntry) Reset()

func (*NinjaTask_LogEntry) String

func (m *NinjaTask_LogEntry) String() string

func (*NinjaTask_LogEntry) XXX_DiscardUnknown

func (m *NinjaTask_LogEntry) XXX_DiscardUnknown()

func (*NinjaTask_LogEntry) XXX_Marshal

func (m *NinjaTask_LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NinjaTask_LogEntry) XXX_Merge

func (m *NinjaTask_LogEntry) XXX_Merge(src proto.Message)

func (*NinjaTask_LogEntry) XXX_Size

func (m *NinjaTask_LogEntry) XXX_Size() int

func (*NinjaTask_LogEntry) XXX_Unmarshal

func (m *NinjaTask_LogEntry) XXX_Unmarshal(b []byte) error

type NinjaTask_OS

type NinjaTask_OS int32

OS.

const (
	NinjaTask_UNKNOWN NinjaTask_OS = 0
	NinjaTask_WIN     NinjaTask_OS = 1
	NinjaTask_LINUX   NinjaTask_OS = 2
	NinjaTask_MAC     NinjaTask_OS = 3
)

func (NinjaTask_OS) EnumDescriptor

func (NinjaTask_OS) EnumDescriptor() ([]byte, []int)

func (NinjaTask_OS) String

func (x NinjaTask_OS) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL