Home | History | Annotate | Download | only in chrome
      1 /*
      2  * Copyright (C) 2018 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 syntax = "proto2";
     18 option optimize_for = LITE_RUNTIME;
     19 package perfetto.protos;
     20 
     21 // TODO(oysteine) : Separate out commonly repeated values into a separate
     22 // message (primarily |name| and |category_group_name|).
     23 message ChromeTraceEvent {
     24   optional string name = 1;
     25   optional int64 timestamp = 2;
     26   optional int32 phase = 3;
     27   optional int32 thread_id = 4;
     28   optional int64 duration = 5;
     29   optional int64 thread_duration = 6;
     30   optional string scope = 7;
     31   optional uint64 id = 8;
     32   optional uint32 flags = 9;
     33   optional string category_group_name = 10;
     34   optional int32 process_id = 11;
     35   optional int64 thread_timestamp = 12;
     36   optional uint32 bind_id = 13;
     37 }
     38 
     39 message ChromeEventBundle {
     40   repeated ChromeTraceEvent trace_events = 1;
     41 }
     42