1# Copyright (C) 2024 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15buffers: { 16 size_kb: 260096 17 fill_policy: RING_BUFFER 18} 19buffers: { 20 size_kb: 2048 21 fill_policy: RING_BUFFER 22} 23data_sources: { 24 config { 25 name: "linux.process_stats" 26 target_buffer: 1 27 process_stats_config { 28 scan_all_processes_on_start: true 29 } 30 } 31} 32data_sources { 33 config { 34 name: "linux.system_info" 35 target_buffer: 1 36 } 37} 38data_sources: { 39 config { 40 name: "linux.sys_stats" 41 target_buffer: 0 42 sys_stats_config { 43 psi_period_ms: 100 44 } 45 } 46} 47data_sources: { 48 config { 49 name: "android.surfaceflinger.frametimeline" 50 } 51} 52data_sources: { 53 config { 54 name: "android.power" 55 target_buffer: 0 56 android_power_config { 57 battery_poll_ms: 500 58 collect_power_rails: true 59 } 60 } 61} 62data_sources: { 63 config { 64 name: "linux.ftrace" 65 ftrace_config { 66 ftrace_events: "sched/sched_switch" 67 ftrace_events: "power/suspend_resume" 68 ftrace_events: "sched/sched_wakeup_new" 69 ftrace_events: "sched/sched_waking" 70 ftrace_events: "power/cpu_frequency" 71 ftrace_events: "power/cpu_idle" 72 ftrace_events: "mm_event/mm_event_record" 73 ftrace_events: "kmem/rss_stat" 74 ftrace_events: "ion/ion_stat" 75 ftrace_events: "dmabuf_heap/dma_heap_stat" 76 ftrace_events: "kmem/ion_heap_grow" 77 ftrace_events: "kmem/ion_heap_shrink" 78 ftrace_events: "sched/sched_process_exit" 79 ftrace_events: "sched/sched_process_free" 80 ftrace_events: "task/task_newtask" 81 ftrace_events: "task/task_rename" 82 ftrace_events: "lowmemorykiller/lowmemory_kill" 83 ftrace_events: "oom/oom_score_adj_update" 84 ftrace_events: "sched/sched_blocked_reason" 85 ftrace_events: "workqueue/*" 86 ftrace_events: "vmscan/*" 87 ftrace_events: "ftrace/print" 88 ftrace_events: "power/wakeup_source_activate" 89 ftrace_events: "power/wakeup_source_deactivate" 90 atrace_categories: "aidl" 91 atrace_categories: "am" 92 atrace_categories: "dalvik" 93 atrace_categories: "binder_driver" 94 atrace_categories: "bionic" 95 atrace_categories: "camera" 96 atrace_categories: "gfx" 97 atrace_categories: "hal" 98 atrace_categories: "input" 99 atrace_categories: "network" 100 atrace_categories: "pm" 101 atrace_categories: "power" 102 atrace_categories: "res" 103 atrace_categories: "sm" 104 atrace_categories: "ss" 105 atrace_categories: "video" 106 atrace_categories: "view" 107 atrace_categories: "wm" 108 atrace_apps: "lmkd" 109 atrace_apps: "*" 110 buffer_size_kb: 16384 111 drain_period_ms: 250 112 throttle_rss_stat: true 113 symbolize_ksyms: true 114 ksyms_mem_policy: KSYMS_RETAIN 115 disable_generic_events: true 116 compact_sched { enabled: true } 117 } 118 } 119} 120duration_ms: 1800000 121write_into_file: true 122file_write_period_ms: 5000 123max_file_size_bytes: 1000000000 124flush_period_ms: 30000 125incremental_state_config { 126 clear_period_ms: 5000 127}