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