aboutsummaryrefslogtreecommitdiff
path: root/protos/perfetto/trace/perfetto/tracing_service_event.proto
blob: 00280576a4f609a5c18efc443dfe5dfd7c0a1476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2020 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;

// Events emitted by the tracing service when data source states change.
message TracingServiceEvent {
  oneof event_type {
    // When this is set to true, reports the point in time (the TracePacket's
    // timestamp) when all data sources did see the start event and ACKed it.
    // This identifies the point in time when it's safe to assume tha all data
    // sources have been recording events.
    // Note: like any other event in the trace, the byte offset at which this
    // packet shows up in the trace is arbitrary and doesn't reflect causal
    // ordering (i.e. it's okay to use this event to reason about the timestamps
    // of othe packets, NOT their relative order w.r.t. this packet).
    bool all_data_sources_started = 1;
  }
}