Keep a running map of the critical path to each edge as it finishes. At the end of the build, find the edge with the longest critical path and print the path to out/soong.log. Test: critical_path_test.go Change-Id: Ie01d26b068b768156b166bff00cdc3273e8124ca
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
// 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.
|
|
|
|
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",
|
|
],
|
|
srcs: [
|
|
"critical_path.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-proto"],
|
|
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-proto"],
|
|
srcs: [
|
|
"build_error_proto/build_error.pb.go",
|
|
],
|
|
}
|