blob: 7ca4b0846e0e604402c0bacdbe32e37e7be41083 [file] [log] [blame]
packet {
process_tree {
processes {
pid: 1
ppid: 0
cmdline: "init"
uid: 0
}
processes {
pid: 2
ppid: 1
cmdline: "system_server"
uid: 1000
}
}
}
packet {
clock_snapshot {
clocks: {
clock_id: 6 # BOOTTIME
timestamp: 0
}
clocks: {
clock_id: 4 # MONOTONIC_COARSE
timestamp: 10
}
}
}
packet {
trusted_packet_sequence_id: 999
previous_packet_dropped: true
incremental_state_cleared: true
timestamp: 10
profile_packet {
strings {
iid: 1
str: "f1"
}
strings {
iid: 2
str: "f2"
}
strings {
iid: 3
str: "f3"
}
strings {
iid: 4
str: "liblib.so"
}
strings {
iid: 5
str: "build-id"
}
frames {
iid: 1
function_name_id: 1
mapping_id: 1
rel_pc: 0x1000
}
frames {
iid: 2
function_name_id: 2
mapping_id: 1
rel_pc: 0x2000
}
frames {
iid: 3
function_name_id: 3
mapping_id: 1
rel_pc: 0x3000
}
frames {
iid: 4
function_name_id: 2
mapping_id: 2
rel_pc: 0x4000
}
callstacks {
iid: 1
frame_ids: 1
frame_ids: 2
frame_ids: 3
}
callstacks {
iid: 2
frame_ids: 1
frame_ids: 4
}
mappings {
iid: 1
path_string_ids: 4
build_id: 5
}
mappings {
iid: 2
path_string_ids: 4
build_id: 5
}
process_dumps {
pid: 2
samples {
callstack_id: 1
self_allocated: 2000
self_freed: 1000
alloc_count: 2
free_count: 1
}
samples {
callstack_id: 2
self_allocated: 100
self_freed: 10
alloc_count: 10
free_count: 1
}
}
}
}
# Add some symbolization packets
packet {
module_symbols {
path: "/liblib.so"
build_id: "build-id"
address_symbols {
address: 0x3000
lines {
function_name: "symbolized f3"
source_file_name: "f3.cc"
line_number: 33
}
}
address_symbols {
address: 0x2000
lines {
function_name: "symbolized f2"
source_file_name: "f2.cc"
line_number: 22
}
}
address_symbols {
address: 0x4000
lines {
function_name: "symbolized f2"
source_file_name: "f2.cc"
line_number: 23
}
}
}
}