File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
src/main/java/com/google/devtools/build/lib Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ proto_library(
26
26
name = "build_event_stream_proto" ,
27
27
srcs = ["build_event_stream.proto" ],
28
28
deps = [
29
+ "//src/main/protobuf:action_cache_proto" ,
29
30
"//src/main/protobuf:command_line_proto" ,
30
31
"//src/main/protobuf:failure_details_proto" ,
31
32
"//src/main/protobuf:invocation_policy_proto" ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package build_event_stream;
18
18
19
19
import "google/protobuf/duration.proto" ;
20
20
import "google/protobuf/timestamp.proto" ;
21
+ import "src/main/protobuf/action_cache.proto" ;
21
22
import "src/main/protobuf/command_line.proto" ;
22
23
import "src/main/protobuf/failure_details.proto" ;
23
24
import "src/main/protobuf/invocation_policy.proto" ;
@@ -874,6 +875,8 @@ message BuildMetrics {
874
875
int32 count = 2 ;
875
876
}
876
877
repeated RunnerCount runner_count = 6 ;
878
+
879
+ blaze.ActionCacheStatistics action_cache_statistics = 7 ;
877
880
}
878
881
ActionSummary action_summary = 1 ;
879
882
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ java_library(
48
48
"//src/main/java/com/google/devtools/build/lib/worker:worker_metric" ,
49
49
"//src/main/java/com/google/devtools/build/skyframe:skyframe_graph_stats_event" ,
50
50
"//src/main/java/com/google/devtools/common/options" ,
51
+ "//src/main/protobuf:action_cache_java_proto" ,
51
52
"//third_party:error_prone_annotations" ,
52
53
"//third_party:guava" ,
53
54
],
Original file line number Diff line number Diff line change 23
23
import com .google .devtools .build .lib .actions .ActionResultReceivedEvent ;
24
24
import com .google .devtools .build .lib .actions .AnalysisGraphStatsEvent ;
25
25
import com .google .devtools .build .lib .actions .TotalAndConfiguredTargetOnlyMetric ;
26
+ import com .google .devtools .build .lib .actions .cache .Protos .ActionCacheStatistics ;
26
27
import com .google .devtools .build .lib .analysis .AnalysisPhaseCompleteEvent ;
27
28
import com .google .devtools .build .lib .analysis .AnalysisPhaseStartedEvent ;
28
29
import com .google .devtools .build .lib .analysis .NoBuildRequestFinishedEvent ;
@@ -214,6 +215,12 @@ private ImmutableList<WorkerMetrics> createWorkerMetrics() {
214
215
.collect (toImmutableList ());
215
216
}
216
217
218
+ @ SuppressWarnings ("unused" )
219
+ @ Subscribe
220
+ private void logActionCacheStatistics (ActionCacheStatistics stats ) {
221
+ actionSummary .setActionCacheStatistics (stats );
222
+ }
223
+
217
224
private BuildMetrics createBuildMetrics () {
218
225
BuildMetrics .Builder buildMetrics =
219
226
BuildMetrics .newBuilder ()
You can’t perform that action at this time.
0 commit comments