• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1packet {
2  trusted_packet_sequence_id: 1
3  timestamp: 0
4  incremental_state_cleared: true
5  track_descriptor {
6    uuid: 1
7    thread {
8      pid: 5
9      tid: 1
10      thread_name: "t1"
11    }
12  }
13}
14packet {
15  trusted_packet_sequence_id: 2
16  timestamp: 0
17  incremental_state_cleared: true
18  track_descriptor {
19    uuid: 1
20    thread {
21      pid: 5
22      tid: 5
23      thread_name: "t1"
24    }
25  }
26}
27packet {
28  # Emitted on tid 1.
29  # Should set the legacy_passthrough_utid to utid 1.
30  trusted_packet_sequence_id: 1
31  timestamp: 1000
32  track_event {
33    categories: "cat"
34    name: "name1"
35    debug_annotations {
36      name: "debug1"
37      nested_value {
38        nested_type: 1  # DICT
39        dict_keys: "key1"
40        dict_keys: "key2"
41        dict_values {
42          nested_type: 0  # leaf
43          int_value: 10
44        }
45        dict_values {
46          nested_type: 2  # ARRAY
47          array_values {
48            nested_type: 0  # leaf
49            int_value: 20
50          }
51          array_values {
52            nested_type: 0  # leaf
53            int_value: 21
54          }
55        }
56      }
57    }
58    debug_annotations {
59      name: "debug2"
60      legacy_json_value: "{\"key1\": 10, \"key2\": [20, 21],"
61                         " \"key3\": {\"key31\": 31}}"
62    }
63    debug_annotations {
64      name: "debug3"
65      int_value: 31
66    }
67    debug_annotations {
68      name: "debug4"
69      dict_entries {
70        name: "key1"
71        int_value: 10
72      }
73      dict_entries {
74        name: "key2"
75        array_values {
76          int_value: 20
77        }
78        array_values {
79          int_value: 21
80        }
81      }
82    }
83    legacy_event {
84      phase: 98  # 'b'
85      global_id: 1234
86    }
87  }
88}
89packet {
90  # Emitted on tid 5.
91  # Should NOT override the legacy_passthrough_utid from the BEGIN event.
92  trusted_packet_sequence_id: 2
93  timestamp: 2000
94  track_event {
95    categories: "cat"
96    debug_annotations {
97      name: "debug1"
98      nested_value {
99        nested_type: 1  # DICT
100        dict_keys: "key3"
101        dict_keys: "key2"
102        dict_values {
103          nested_type: 0  # leaf
104          int_value: 30
105        }
106        dict_values {
107          nested_type: 2  # ARRAY
108          array_values {
109            nested_type: 0  # leaf
110            int_value: 22
111          }
112          array_values {
113            nested_type: 0  # leaf
114            int_value: 23
115          }
116        }
117      }
118    }
119    debug_annotations {
120      name: "debug2"
121      legacy_json_value: "{\"key4\": 40, \"key2\": [22, 23],"
122                         " \"key3\": {\"key32\": 32}}"
123    }
124    debug_annotations {
125      name: "debug3"
126      int_value: 32
127    }
128    legacy_event {
129      phase: 101  # 'e'
130      global_id: 1234
131    }
132  }
133}
134