Files
build_soong/ui/metrics/mk_metrics_proto/mk_metrics.proto
Chris Parsons 53f68ae3b8 Report mkfile metrics with --mk-metrics
Combined with roboleaf CI changes to pass this flag and subsequent
pipeline changes, this will allow basic mkfile metrics to be
dashboarded, which will help track mk2bp progress.

Bug: 217764943
Test: manual; verified mk_metrics.pb is generated iff --mk-metrics is
specified, used printproto on result

Change-Id: I348994b4d7e3479d0dc04de0276b94a702aac95b
2022-03-03 15:28:20 -05:00

31 lines
1.1 KiB
Protocol Buffer

// Copyright 2022 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package soong_build_mk_metrics;
option go_package = "android/soong/ui/metrics/mk_metrics_proto";
// Contains metrics pertaining to makefiles.
message MkMetrics {
// Total number of mk files present in the workspace.
uint32 totalMakefiles = 1;
// Number of top-level mk files present in the workspace.
// A mk file is "top level" if there are no mk files in its parent
// direrctories.
// This value is equivalent to the number of entries in Android.mk.list.
uint32 toplevelMakefiles = 2;
}