| buffers { | |
| size_kb: 102400 | |
| fill_policy: RING_BUFFER | |
| } | |
| data_sources { | |
| config { | |
| name: "linux.ftrace" | |
| target_buffer: 0 | |
| ftrace_config { | |
| # Scheduling information & process tracking. Useful for: | |
| # - what is happening on each CPU at each moment | |
| # - why a thread was descheduled | |
| # - parent/child relationships between processes and threads. | |
| ftrace_events: "sched/sched_switch" | |
| ftrace_events: "power/suspend_resume" | |
| ftrace_events: "sched/sched_process_exit" | |
| ftrace_events: "sched/sched_process_free" | |
| ftrace_events: "task/task_newtask" | |
| ftrace_events: "task/task_rename" | |
| # Wakeup info. Allows you to compute how long a task was | |
| # blocked due to CPU contention. | |
| ftrace_events: "sched/sched_wakeup" | |
| # os.Trace markers: | |
| ftrace_events: "ftrace/print" | |
| # Atrace events from com.google.android.GoogleCamera | |
| atrace_apps: "com.google.android.GoogleCamera" | |
| # LMK | |
| atrace_apps: "lmkd" | |
| ftrace_events: "lowmemorykiller/lowmemory_kill" | |
| ftrace_events: "oom/oom_score_adj_update" | |
| # Atrace camera category: | |
| atrace_categories: "camera" | |
| # Atrace activity manager: | |
| atrace_categories: "am" | |
| # Atrace system_server: | |
| atrace_categories: "ss" | |
| # RSS and ION buffer events: | |
| ftrace_events: "mm_event/mm_event_record" | |
| ftrace_events: "kmem/rss_stat" | |
| ftrace_events: "kmem/ion_heap_grow" | |
| ftrace_events: "kmem/ion_heap_shrink" | |
| } | |
| } | |
| } | |
| data_sources: { | |
| config { | |
| name: "linux.process_stats" | |
| target_buffer: 0 | |
| process_stats_config { | |
| scan_all_processes_on_start: true | |
| } | |
| } | |
| } | |
| duration_ms: 10000 |