1packet { 2 process_tree { 3 processes { 4 pid: 1 5 ppid: 0 6 cmdline: "init" 7 uid: 0 8 } 9 processes { 10 pid: 2 11 ppid: 1 12 cmdline: "system_server" 13 uid: 1000 14 } 15 } 16} 17 18packet { 19 clock_snapshot { 20 clocks: { 21 clock_id: 6 # BOOTTIME 22 timestamp: 0 23 } 24 clocks: { 25 clock_id: 4 # MONOTONIC_COARSE 26 timestamp: 10 27 } 28 } 29} 30 31packet { 32 trusted_packet_sequence_id: 999 33 previous_packet_dropped: true 34 incremental_state_cleared: true 35 timestamp: 10 36 profile_packet { 37 strings { 38 iid: 1 39 str: "f1" 40 } 41 strings { 42 iid: 2 43 str: "f2" 44 } 45 strings { 46 iid: 3 47 str: "f3" 48 } 49 strings { 50 iid: 4 51 str: "liblib.so" 52 } 53 strings { 54 iid: 5 55 str: "build-id" 56 } 57 frames { 58 iid: 1 59 function_name_id: 1 60 mapping_id: 1 61 rel_pc: 0x1000 62 } 63 frames { 64 iid: 2 65 function_name_id: 2 66 mapping_id: 1 67 rel_pc: 0x2000 68 } 69 frames { 70 iid: 3 71 function_name_id: 3 72 mapping_id: 1 73 rel_pc: 0x3000 74 } 75 frames { 76 iid: 4 77 function_name_id: 2 78 mapping_id: 2 79 rel_pc: 0x4000 80 } 81 callstacks { 82 iid: 1 83 frame_ids: 1 84 frame_ids: 2 85 frame_ids: 3 86 } 87 callstacks { 88 iid: 2 89 frame_ids: 1 90 frame_ids: 4 91 } 92 mappings { 93 iid: 1 94 path_string_ids: 4 95 build_id: 5 96 } 97 mappings { 98 iid: 2 99 path_string_ids: 4 100 build_id: 5 101 } 102 process_dumps { 103 pid: 2 104 orig_sampling_interval_bytes: 1024 105 sampling_interval_bytes: 1024 106 samples { 107 callstack_id: 1 108 self_max: 1000 109 self_max_count: 6 110 } 111 samples { 112 callstack_id: 2 113 self_max: 90 114 self_max_count: 1 115 } 116 } 117 } 118} 119# Add some symbolization packets 120packet { 121 module_symbols { 122 path: "/liblib.so" 123 build_id: "build-id" 124 address_symbols { 125 address: 0x3000 126 lines { 127 function_name: "symbolized f3" 128 source_file_name: "f3.cc" 129 line_number: 33 130 } 131 } 132 address_symbols { 133 address: 0x2000 134 lines { 135 function_name: "symbolized f2" 136 source_file_name: "f2.cc" 137 line_number: 22 138 } 139 } 140 address_symbols { 141 address: 0x4000 142 lines { 143 function_name: "symbolized f2" 144 source_file_name: "f2.cc" 145 line_number: 23 146 } 147 } 148 } 149} 150