28c1fe5bc8
To improve build efficiency, the metrics for critical path and parallelism ratio is necessary. That information has been included in soong.log, so added it into metrics as well. Bug: 271526845 Test: build and check if metrics pb has critical path info Change-Id: I14e1a78c13d400b792d3b05df18604da48759ade
79 lines
2.2 KiB
Text
79 lines
2.2 KiB
Text
// Copyright 2018 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.
|
|
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-ui-status",
|
|
pkgPath: "android/soong/ui/status",
|
|
deps: [
|
|
"golang-protobuf-proto",
|
|
"soong-ui-logger",
|
|
"soong-ui-status-ninja_frontend",
|
|
"soong-ui-status-build_error_proto",
|
|
"soong-ui-status-build_progress_proto",
|
|
],
|
|
srcs: [
|
|
"critical_path.go",
|
|
"critical_path_logger.go",
|
|
"kati.go",
|
|
"log.go",
|
|
"ninja.go",
|
|
"status.go",
|
|
],
|
|
testSrcs: [
|
|
"critical_path_test.go",
|
|
"kati_test.go",
|
|
"ninja_test.go",
|
|
"status_test.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-ui-status-ninja_frontend",
|
|
pkgPath: "android/soong/ui/status/ninja_frontend",
|
|
deps: [
|
|
"golang-protobuf-reflect-protoreflect",
|
|
"golang-protobuf-runtime-protoimpl",
|
|
],
|
|
srcs: [
|
|
"ninja_frontend/frontend.pb.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-ui-status-build_error_proto",
|
|
pkgPath: "android/soong/ui/status/build_error_proto",
|
|
deps: [
|
|
"golang-protobuf-reflect-protoreflect",
|
|
"golang-protobuf-runtime-protoimpl",
|
|
],
|
|
srcs: [
|
|
"build_error_proto/build_error.pb.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-ui-status-build_progress_proto",
|
|
pkgPath: "android/soong/ui/status/build_progress_proto",
|
|
deps: [
|
|
"golang-protobuf-reflect-protoreflect",
|
|
"golang-protobuf-runtime-protoimpl",
|
|
],
|
|
srcs: [
|
|
"build_progress_proto/build_progress.pb.go",
|
|
],
|
|
}
|