/* * Copyright (C) 2024 The Android Open Source Project * * 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 = "proto2"; package perfetto.protos; // Custom configuration for the "android.windowmanager" data source. message WindowManagerConfig { enum LogFrequency { LOG_FREQUENCY_UNSPECIFIED = 0; // Trace state snapshots when a frame is committed. LOG_FREQUENCY_FRAME = 1; // Trace state snapshots every time a transaction is committed. LOG_FREQUENCY_TRANSACTION = 2; // Trace single state snapshots when the data source is started. LOG_FREQUENCY_SINGLE_DUMP = 3; } optional LogFrequency log_frequency = 1; enum LogLevel { LOG_LEVEL_UNSPECIFIED = 0; // Logs all elements with maximum amount of information. LOG_LEVEL_VERBOSE = 1; // Logs all elements but doesn't write all configuration data. LOG_LEVEL_DEBUG = 2; // Logs only visible elements, with the minimum amount of performance // overhead LOG_LEVEL_CRITICAL = 3; } optional LogLevel log_level = 2; }