1buffers: {
2    size_kb: 63488
3    fill_policy: DISCARD
4}
5buffers: {
6    size_kb: 2048
7    fill_policy: DISCARD
8}
9# Max duration: 1 min
10duration_ms: 60000
11
12data_sources: {
13    config {
14        name: "linux.ftrace"
15
16        # See: https://perfetto.dev/docs/data-sources/atrace#traceconfig
17        ftrace_config {
18            ftrace_events: "ftrace/print"
19
20            # Trace all ContentProvider commands and SQLite queries.
21            # See: https://source.corp.google.com/android-internal/frameworks/base/core/java/android/os/Trace.java?q=TRACE_TAG_DATABASE
22            # See: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/database/sqlite/SQLiteConnection.java
23            # Uncomment to enable.
24            # Note: on a userdebug build it will add a trace for every SQLite command for every
25            # application, which makes traces very-very "noisy".
26            # atrace_categories: "database"
27
28            # Trace Binder IPC transactions.
29            # Uncomment to enable.
30            # Note: on a userdebug build it will add a trace for every Binder transaction for every
31            # application, which makes traces very-very "noisy".
32            # atrace_categories: "binder_driver"
33
34            # ActivityManager, WindowManager, Graphics, View System.
35            # Uncomment to enable.
36            # Note: on a userdebug build it will traces from corresponding category for every
37            # application, which makes traces very-very "noisy".
38            # atrace_categories: "wm"
39            # atrace_categories: "am"
40            atrace_categories: "gfx"
41            atrace_categories: "view"
42
43            # Trace DocumentUI "custom" events.
44            atrace_apps: "com.android.documentsui"
45            atrace_apps: "com.google.android.documentsui"
46
47            # Trace other Providers.
48
49            # authorities="com.android.documentsui.archives" - DocsUI
50            atrace_apps: "com.android.documentsui"
51            atrace_apps: "com.google.android.documentsui"
52
53            # authorities="com.android.externalstorage.documents" - ExternalStorageProvider
54            atrace_apps: "com.android.externalstorage"
55
56            # authorities="com.android.mtp.documents" - Mtp
57            atrace_apps: "com.android.mtp"
58
59            # authorities="com.android.pixellogger.documents" - PixelLogger
60            atrace_apps: "com.android.pixellogger"
61
62            # authorities="com.android.providers.downloads" - DownloadSProvider
63            atrace_apps: "com.android.providers.downloads.documents"
64
65            # authorities="com.android.providers.media.documents" - MediaProvider
66            atrace_apps: "com.android.providers.media.module"
67            atrace_apps: "com.google.android.providers.media.module"
68
69            # authorities="com.android.shell.documents" - Shell (BugreportStorageProvider)
70            # atrace_apps: "android.uid.shell"
71
72            # authorities="com.google.android.apps.docs.storage" - Google Docs
73            atrace_apps: "com.google.android.apps.docs"
74
75            # Google Photos.
76            # atrace_apps: "com.google.android.apps.photos"
77
78            # Trace all apps' events.
79            # Uncomment to enable.
80            # atrace_apps: "*"
81        }
82    }
83}
84
85# This is for getting Thread-to-Process associations and full process names.
86data_sources: {
87    config {
88        name: "linux.process_stats"
89    }
90}
91
92# "Expected Timeline" and "Actual Timeline" jor each process
93# See https://perfetto.dev/docs/data-sources/frametimeline#traceconfig
94data_sources {
95    config {
96        name: "android.surfaceflinger.frametimeline"
97    }
98}
99
100# Memory Profiling
101# See https://perfetto.dev/docs/data-sources/memory-counters
102
103# Android Logcat
104data_sources: {
105    config {
106        name: "android.log"
107        android_log_config {
108            min_prio: PRIO_VERBOSE # Default: PRIO_DEBUG
109
110            log_ids: LID_EVENTS
111            log_ids: LID_CRASH
112            log_ids: LID_KERNEL
113            log_ids: LID_DEFAULT
114            log_ids: LID_RADIO
115            log_ids: LID_SECURITY
116            log_ids: LID_STATS
117            log_ids: LID_SYSTEM
118
119            # If filter_tags non-empty ignores all log messages whose tag doesn't match one of the
120            # specified values.
121            # filter_tags: "AbstractActionHandler"
122            # filter_tags: "ActionModeController"
123            # filter_tags: "Archive"
124            # filter_tags: "ArchiveFileTestRule"
125            # filter_tags: "ArchiveHandle"
126            # filter_tags: "ArchivesProvider"
127            # filter_tags: "CancelFromNotificationUiTest"
128            # filter_tags: "ClipStorage"
129            # filter_tags: "CommandInterceptor"
130            # filter_tags: "CompressJob"
131            # filter_tags: "ConfirmFragment"
132            # filter_tags: "ContentLock"
133            # filter_tags: "CopyJob"
134            # filter_tags: "DebugHelper"
135            # filter_tags: "DeleteJob"
136            # filter_tags: "DirectoryFragment"
137            # filter_tags: "DirectoryLoader"
138            # filter_tags: "DirectoryResult"
139            # filter_tags: "DocumentAccess"
140            # filter_tags: "DocumentClipper"
141            # filter_tags: "DocumentInfo"
142            # filter_tags: "DocumentStack"
143            # filter_tags: "Documents"
144            # filter_tags: "DocumentsApplication"
145            # filter_tags: "DocumentsSwipeRefreshLayout"
146            # filter_tags: "DragStartListener"
147            # filter_tags: "DrawerController"
148            # filter_tags: "EjectRootTask"
149            # filter_tags: "FileCopyUiTest"
150            # filter_tags: "FileDeleteUiTest"
151            # filter_tags: "FileOperationService"
152            # filter_tags: "FileOperations"
153            # filter_tags: "FilesActivity"
154            # filter_tags: "FilesAppPerfTest"
155            # filter_tags: "FocusManager"
156            # filter_tags: "GetRootDocumentTask"
157            # filter_tags: "HeaderItem"
158            # filter_tags: "HeaderMessage"
159            # filter_tags: "IconHelper"
160            # filter_tags: "ItemDragListener"
161            # filter_tags: "Job"
162            # filter_tags: "JumboUrisSupplier"
163            # filter_tags: "LastAccessedProvider"
164            # filter_tags: "LastAccessedStorage"
165            # filter_tags: "LauncherActivity"
166            # filter_tags: "ListDocumentHolder"
167            # filter_tags: "LoadDocStackTask"
168            # filter_tags: "LoadRootTask"
169            # filter_tags: "Loader"
170            # filter_tags: "ManagerActionHandler"
171            # filter_tags: "MenuManager"
172            # filter_tags: "MetadataLoader"
173            # filter_tags: "Metrics"
174            # filter_tags: "Model"
175            # filter_tags: "ModelBackedDocuments"
176            # filter_tags: "MoveJob"
177            # filter_tags: "MultiRootDocsLoader"
178            # filter_tags: "NavigationViewManager"
179            # filter_tags: "OperationDialogFragment"
180            # filter_tags: "PermissionsTest"
181            # filter_tags: "PickActivity"
182            # filter_tags: "PickCountRecordProvider"
183            # filter_tags: "PickCountRecordStorage"
184            # filter_tags: "PickFragment"
185            # filter_tags: "PickerActionHandler"
186            # filter_tags: "PreBootReceiver"
187            # filter_tags: "ProfileTabsController"
188            # filter_tags: "ProvidersCache"
189            # filter_tags: "QuickViewIntentBuilder"
190            # filter_tags: "ReadableArchive"
191            # filter_tags: "RefreshTask"
192            # filter_tags: "ResolvedResourcesJob"
193            # filter_tags: "RootCursorWrapper"
194            # filter_tags: "RootInfo"
195            # filter_tags: "RootItem"
196            # filter_tags: "RootUiTest"
197            # filter_tags: "RootsDragHost"
198            # filter_tags: "RootsFragment"
199            # filter_tags: "RootsListBot"
200            # filter_tags: "SaveFragment"
201            # filter_tags: "ScaleHelper"
202            # filter_tags: "ScopedAccessMetrics"
203            # filter_tags: "SearchFragment"
204            # filter_tags: "SearchHistoryManager"
205            # filter_tags: "SearchManager"
206            # filter_tags: "SectioningDocumentsAdapterWrapper"
207            # filter_tags: "SelectionMetadata"
208            # filter_tags: "SharedInputHandler"
209            # filter_tags: "SortModel"
210            # filter_tags: "SpacerItem"
211            # filter_tags: "State"
212            # filter_tags: "StubProvider"
213            # filter_tags: "TestContextResolver"
214            # filter_tags: "TestNotificationService"
215            # filter_tags: "ThemeOverlayManager"
216            # filter_tags: "ThumbnailLoader"
217            # filter_tags: "UserIdManager"
218            # filter_tags: "WriteableArchive"
219            # filter_tags: "dirlist.DragHost"
220        }
221    }
222}
223