1// Copyright (C) 2022 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package ninja_metrics; 18 19// NinjaMetrics is to deliver the information of input files to build a target 20// device or an image. These information is captured from ninja analysis 21message NinjaMetrics { 22 // Total number of input files to build a target or an image 23 uint32 num_input_files = 1; 24 25 // The number of git projects that need to be checked out to build a target 26 // or an image 27 uint32 num_projects = 2; 28 29 // Details of the all required git projects 30 repeated ProjectInfo project_infos = 3; 31} 32 33// ProjectInfo is to describe each git project 34message ProjectInfo { 35 // Path of the git project 36 string name = 1; 37 38 // The number of required files in the git project to build a target or an 39 // image 40 uint32 num_input_files = 2; 41} 42