Daniele Di Proietto | e806806 | 2024-02-16 17:54:03 +0000 | [diff] [blame] | 1 | # Persistent tracing configuration. Only enabled on some devices for debugging |
| 2 | # purposes when the property persist.debug.perfetto.persistent is set to 1. |
| 3 | |
| 4 | bugreport_score: 5 |
| 5 | bugreport_filename: "sysui.pftrace" |
| 6 | unique_session_name: "sysui_persistent" |
| 7 | flush_timeout_ms: 10000 |
| 8 | compression_type: COMPRESSION_TYPE_DEFLATE |
| 9 | |
| 10 | # Buffer 0: for android.surfaceflinger.transactions |
| 11 | buffers { |
| 12 | size_kb: 1024 |
| 13 | fill_policy: RING_BUFFER |
| 14 | } |
| 15 | |
| 16 | # Buffer 1: for android.surfaceflinger.layers |
| 17 | buffers { |
| 18 | size_kb: 409600 |
| 19 | fill_policy: RING_BUFFER |
| 20 | transfer_on_clone: true |
| 21 | clear_before_clone: true |
| 22 | } |
| 23 | |
Pablo Gamito | 22bcba6 | 2024-08-09 17:03:44 +0000 | [diff] [blame] | 24 | # Buffer 2: for other Winscope traces |
Daniele Di Proietto | e806806 | 2024-02-16 17:54:03 +0000 | [diff] [blame] | 25 | buffers { |
Pablo Gamito | 22bcba6 | 2024-08-09 17:03:44 +0000 | [diff] [blame] | 26 | size_kb: 2048 |
Daniele Di Proietto | e806806 | 2024-02-16 17:54:03 +0000 | [diff] [blame] | 27 | fill_policy: RING_BUFFER |
Daniele Di Proietto | d8c453a | 2024-08-13 16:21:36 +0000 | [diff] [blame] | 28 | } |
Daniele Di Proietto | e806806 | 2024-02-16 17:54:03 +0000 | [diff] [blame] | 29 | |
| 30 | |
| 31 | data_sources: { |
| 32 | config { |
| 33 | name: "android.surfaceflinger.transactions" |
| 34 | target_buffer: 0 |
| 35 | surfaceflinger_transactions_config: { |
| 36 | mode: MODE_ACTIVE |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | data_sources: { |
| 42 | config { |
| 43 | name: "android.surfaceflinger.layers" |
| 44 | target_buffer: 1 |
| 45 | surfaceflinger_layers_config: { |
| 46 | mode: MODE_GENERATED_BUGREPORT_ONLY |
| 47 | trace_flags: TRACE_FLAG_INPUT |
| 48 | trace_flags: TRACE_FLAG_BUFFERS |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | data_sources: { |
| 54 | config { |
| 55 | name: "com.android.wm.shell.transition" |
| 56 | target_buffer: 2 |
| 57 | } |
| 58 | } |
| 59 | |
Pablo Gamito | 22bcba6 | 2024-08-09 17:03:44 +0000 | [diff] [blame] | 60 | data_sources: { |
| 61 | config { |
Daniele Di Proietto | d8c453a | 2024-08-13 16:21:36 +0000 | [diff] [blame] | 62 | name: "android.protolog" |
Pablo Gamito | 22bcba6 | 2024-08-09 17:03:44 +0000 | [diff] [blame] | 63 | protolog_config { |
| 64 | tracing_mode: ENABLE_ALL |
| 65 | } |
Daniele Di Proietto | d8c453a | 2024-08-13 16:21:36 +0000 | [diff] [blame] | 66 | target_buffer: 2 |
Pablo Gamito | 22bcba6 | 2024-08-09 17:03:44 +0000 | [diff] [blame] | 67 | } |
| 68 | } |