1# Copyright (C) 2021 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
15# This trace config is used for collecting necessary information used in multiuser tests.
16
17buffers: {
18    size_kb: 129024
19    fill_policy: RING_BUFFER
20}
21buffers: {
22    size_kb: 2048
23    fill_policy: RING_BUFFER
24}
25data_sources: {
26    config {
27        name: "linux.process_stats"
28        target_buffer: 1
29        process_stats_config {
30            scan_all_processes_on_start: true
31            proc_stats_poll_ms: 1000
32        }
33    }
34}
35data_sources {
36  config {
37    name: "linux.system_info"
38    target_buffer: 1
39  }
40}
41data_sources: {
42    config {
43        name: "linux.sys_stats"
44        sys_stats_config {
45            meminfo_period_ms: 1000
46            stat_period_ms: 1000
47            stat_counters: STAT_CPU_TIMES
48            stat_counters: STAT_FORK_COUNT
49        }
50    }
51}
52data_sources: {
53    config {
54        name: "linux.ftrace"
55        ftrace_config {
56           throttle_rss_stat: true
57           ftrace_events: "task/task_newtask"
58           ftrace_events: "task/task_rename"
59           ftrace_events: "sched/sched_process_exit"
60           ftrace_events: "sched/sched_process_free"
61           ftrace_events: "rss_stat"
62           ftrace_events: "ion_heap_shrink"
63           ftrace_events: "ion_heap_grow"
64           ftrace_events: "ion/ion_stat"
65           ftrace_events: "dmabuf_heap/dma_heap_stat"
66           ftrace_events: "oom_score_adj_update"
67           ftrace_events: "gpu_mem/gpu_mem_total"
68           ftrace_events: "lowmemorykiller/lowmemory_kill"
69           atrace_apps: "*"
70           atrace_categories: "am"
71           atrace_categories: "binder_driver"
72           atrace_categories: "bionic"
73           atrace_categories: "dalvik"
74           atrace_categories: "input"
75           atrace_categories: "pm"
76           atrace_categories: "res"
77           atrace_categories: "rro"
78           atrace_categories: "ss"
79           atrace_categories: "view"
80           atrace_categories: "wm"
81           atrace_categories: "freq"
82           atrace_categories: "sched"
83           atrace_categories: "sync"
84           atrace_categories: "workq"
85        }
86    }
87}
88duration_ms: 30000
89write_into_file: true
90file_write_period_ms: 2500
91max_file_size_bytes: 1000000000
92flush_period_ms: 30000
93incremental_state_config {
94    clear_period_ms: 5000
95}
96