blob: 97e35702f46722d8cb3cc53efae2c8dee6445bf4 [file] [log] [blame]
// Copyright 2017 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 benchmark;
option java_package = "com.google.devtools.build.benchmark";
option java_multiple_files = true;
// Environment config for a build (how we build a target)
message BuildEnvConfig {
string description = 1;
repeated string build_args = 2;
bool clean_before_build = 3;
bool incremental = 4;
}
// Build results (elapsed time) for a specific code version
// results are used for running benchmark for several times for now
message SingleBuildResult {
string code_version = 1;
string datetime = 2;
repeated double results = 3;
}
// Build results for a specific environment config
message BuildEnvResult {
BuildEnvConfig config = 1;
repeated SingleBuildResult results = 2;
}
// Target config for a build (what to build)
message BuildTargetConfig {
string description = 1;
string build_target = 2;
}
// Build results for a specific target config
message BuildTargetResult {
BuildTargetConfig build_target_config = 1;
repeated BuildEnvResult build_env_results = 2;
}
// Build results for a group (environment * target)
message BuildGroupResult {
repeated BuildTargetResult build_target_results = 1;
}