1buffers: {
2    size_kb: 63488
3    fill_policy: DISCARD
4}
5buffers: {
6    size_kb: 2048
7    fill_policy: DISCARD
8}
9
10data_sources: {
11    config {
12        name: "linux.ftrace"
13
14        # See: https://perfetto.dev/docs/data-sources/atrace#traceconfig
15        ftrace_config {
16            ftrace_events: "ftrace/print"
17
18            # Trace all ContentProvider commands and SQLite queries.
19            # See: https://source.corp.google.com/android-internal/frameworks/base/core/java/android/os/Trace.java?q=TRACE_TAG_DATABASE
20            # See: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/database/sqlite/SQLiteConnection.java
21            # Uncomment to enable. Note: on a userdebug build it will add a trace for every SQLite
22            # command any application runs, which will make a trace very "noisy".
23            # atrace_categories: "database"
24
25            # Trace Binder IPC transactions.
26            # Uncomment to enable. Note: on a userdebug build it will add a trace for every Binder
27            # transaction for every application, which will make a trace very "noisy".
28            # atrace_categories: "binder_driver"
29
30            # ActivityManager, WindowManager, Graphics, View System.
31            # Uncomment to enable. Note: on a userdebug build it will traces form corresponding
32            # category for every application, which will make a trace very "noisy".
33            # atrace_categories: "wm"
34            # atrace_categories: "am"
35            # atrace_categories: "gfx"
36            # atrace_categories: "view"
37
38            # Trace MediaProviders' events.
39            atrace_apps: "com.android.providers.media.module"
40            atrace_apps: "com.android.providers.media.module:PhotoPicker"
41            atrace_apps: "com.google.android.providers.media.module"
42            atrace_apps: "com.google.android.providers.media.module:PhotoPicker"
43
44            # Trace Google Photos' events.
45            # Uncomment to enable.
46            # atrace_apps: "com.google.android.apps.photos"
47
48            # Trace all apps' events.
49            # Uncomment to enable.
50            # atrace_apps: "*"
51        }
52    }
53}
54
55# Android Logcat
56data_sources: {
57    config {
58        name: "android.log"
59        android_log_config {
60            min_prio: PRIO_VERBOSE # Default: PRIO_DEBUG
61
62            # If filter_tags non-empty ignores all log messages whose tag doesn't match one of the
63            # specified values.
64            # filter_tags: "MediaProvider"
65            # filter_tags: "PickerDataLayer"
66            # filter_tags: "PickerDbFacade"
67            # filter_tags: "PickerSyncController"
68
69            log_ids: LID_EVENTS
70            log_ids: LID_CRASH
71            log_ids: LID_KERNEL
72            log_ids: LID_DEFAULT
73            log_ids: LID_RADIO
74            log_ids: LID_SECURITY
75            log_ids: LID_STATS
76            log_ids: LID_SYSTEM
77        }
78    }
79}
80
81# This is for getting Thread<>Process associations and full process names.
82data_sources: {
83    config {
84        name: "linux.process_stats"
85    }
86}
87
88# Max duration: 1 min
89duration_ms: 60000
90