blob: 6c458b4d2efcb0431a25b10c1b588f203ced3aa0 [file]
/*
* 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";
import public "protos/perfetto/trace/track_event/track_event.proto";
package perfetto.protos;
// Information about sending and receiving messages on threads with
// Looper and MessageQueue.
message AndroidMessageQueue {
// Thread name sending a message on the MessageQueue.
optional string sending_thread_name = 1;
// Thread name receiving a message on the MessageQueue.
optional string receiving_thread_name = 2;
// User-defined message code for messages in the MessageQueue.
optional int32 message_code = 3;
// Intended delay in millis before a message on the MessageQueue is executed.
optional uint64 message_delay_ms = 4;
}
message AndroidTrackEvent {
// Usable range: [2001, 2999]
// Next id: 2005
extend TrackEvent {
// The name of a binder service.
optional string binder_service_name = 2001;
// The name of a binder interface.
optional string binder_interface_name = 2002;
// The name of an apex.
optional string apex_name = 2003;
// MessageQueue messages.
optional AndroidMessageQueue message_queue = 2004;
}
}