blob: 97a8d20669d36b443fb0af7d082f2cad29867b57 [file] [log] [blame]
// Copyright 2023 The Bazel Authors. 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 memory_pressure;
option java_package = "com.google.devtools.build.lib.runtime";
// Statistics about memory pressure handling.
message MemoryPressureStats {
// The number of calls to System.gc() made by RetainedHeapLimiter.
int32 manually_triggered_gcs = 1;
// The maximum number of consecutive full GC events over the threshold ignored
// by RetainedHeapLimiter because it recently triggered a GC.
int32 max_consecutive_ignored_gcs_over_threshold = 2;
// Number of times HighWaterMarkLimiter dropped caches after minor GCs.
int32 minor_gc_drops = 3;
// Number of times HighWaterMarkLimiter dropped caches after full GCs.
int32 full_gc_drops = 4;
}