forked from google/perfetto
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathandroid_syshealth.cfg
More file actions
192 lines (192 loc) · 5.19 KB
/
android_syshealth.cfg
File metadata and controls
192 lines (192 loc) · 5.19 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# A very good trace config for most Android Performance tracing.
# Buffer 0: For most continuous data (ftrace, power, sys_stats, frametimeline)
buffers: {
size_kb: 260096
fill_policy: RING_BUFFER
}
# Buffer 1: For process_stats
buffers: {
size_kb: 2048
fill_policy: RING_BUFFER
}
# Buffer 2: For logging
buffers: {
size_kb: 2048
fill_policy: RING_BUFFER
}
# Buffer 3: For packages list and system info
buffers: {
size_kb: 1024
fill_policy: RING_BUFFER
}
# Buffer 4: Stastd atoms
buffers: {
size_kb: 256
fill_policy: RING_BUFFER
}
data_sources {
config {
name: "track_event"
target_buffer: 0
track_event_config {
disabled_categories:"*"
enabled_categories: "servicemanager"
enabled_categories: "gfx"
enabled_categories: "mq"
}
}
}
data_sources: {
config {
name: "linux.process_stats"
target_buffer: 1
process_stats_config {
scan_all_processes_on_start: true
# As we're primarily interested in memory stats, we don't need to
# poll very often as we also have the kmem/rss_stat ftrace event.
proc_stats_poll_ms: 10000
}
}
}
data_sources: {
config {
name: "linux.sys_stats"
target_buffer: 0
sys_stats_config {
psi_period_ms: 100
cpufreq_period_ms: 1000
}
}
}
data_sources: {
config {
name: "linux.system_info"
target_buffer: 3
}
}
data_sources: {
config {
name: "android.surfaceflinger.frametimeline"
target_buffer: 0
}
}
data_sources: {
config {
name: "android.power"
target_buffer: 0
android_power_config {
battery_poll_ms: 500
collect_power_rails: true
}
}
}
data_sources: {
config {
name: "android.log"
target_buffer: 2
android_log_config {
log_ids: LID_DEFAULT
}
}
}
data_sources: {
config {
name: "android.packages_list"
target_buffer: 3
}
}
data_sources: {
config {
name: "android.system_property"
target_buffer: 3
android_system_property_config {
# No need to poll often, as boot image profiling properties are set
# once during the boot sequence.
poll_ms: 30000
property_name: "debug.tracing.profile_boot_classpath"
property_name: "debug.tracing.profile_system_server"
}
}
}
data_sources: {
config {
name: "linux.ftrace"
target_buffer: 0
ftrace_config {
ftrace_events: "sched/sched_switch"
ftrace_events: "power/suspend_resume"
ftrace_events: "sched/sched_wakeup_new"
ftrace_events: "sched/sched_waking"
ftrace_events: "power/cpu_frequency"
ftrace_events: "power/cpu_idle"
ftrace_events: "mm_event/mm_event_record"
ftrace_events: "kmem/rss_stat"
ftrace_events: "ion/ion_stat"
ftrace_events: "dmabuf_heap/dma_heap_stat"
ftrace_events: "kmem/ion_heap_grow"
ftrace_events: "kmem/ion_heap_shrink"
ftrace_events: "sched/sched_process_exit"
ftrace_events: "sched/sched_process_free"
ftrace_events: "task/task_newtask"
ftrace_events: "task/task_rename"
ftrace_events: "lowmemorykiller/lowmemory_kill"
ftrace_events: "oom/oom_score_adj_update"
ftrace_events: "sched/sched_blocked_reason"
ftrace_events: "workqueue/*"
ftrace_events: "vmscan/*"
ftrace_events: "ftrace/print"
ftrace_events: "power/wakeup_source_activate"
ftrace_events: "power/wakeup_source_deactivate"
atrace_categories: "aidl"
atrace_categories: "am"
atrace_categories: "dalvik"
atrace_categories: "binder_driver"
atrace_categories: "bionic"
atrace_categories: "camera"
atrace_categories: "gfx"
atrace_categories: "hal"
atrace_categories: "input"
atrace_categories: "network"
atrace_categories: "pm"
atrace_categories: "power"
atrace_categories: "res"
atrace_categories: "sm"
atrace_categories: "ss"
atrace_categories: "video"
atrace_categories: "view"
atrace_categories: "wm"
atrace_apps: "lmkd"
atrace_apps: "*"
buffer_size_kb: 16384
drain_period_ms: 250
throttle_rss_stat: true
symbolize_ksyms: true
ksyms_mem_policy: KSYMS_RETAIN
disable_generic_events: true
compact_sched { enabled: true }
}
}
}
data_sources: {
config {
name: "android.statsd"
target_buffer: 4
statsd_tracing_config {
push_atom_id: ATOM_SCHEDULED_JOB_STATE_CHANGED
}
}
}
data_sources {
config {
name: "android.app_wakelocks"
target_buffer: 0
}
}
duration_ms: 1800000
write_into_file: true
file_write_period_ms: 5000
max_file_size_bytes: 1000000000
flush_period_ms: 30000
incremental_state_config {
clear_period_ms: 5000
}