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 4bugreport_score: 5 5bugreport_filename: "sysui.pftrace" 6unique_session_name: "sysui_persistent" 7flush_timeout_ms: 10000 8compression_type: COMPRESSION_TYPE_DEFLATE 9 10# Buffer 0: for android.surfaceflinger.transactions 11buffers { 12 size_kb: 1024 13 fill_policy: RING_BUFFER 14} 15 16# Buffer 1: for android.surfaceflinger.layers 17buffers { 18 size_kb: 409600 19 fill_policy: RING_BUFFER 20 transfer_on_clone: true 21 clear_before_clone: true 22} 23 24# Buffer 2: for other Winscope traces 25buffers { 26 size_kb: 2048 27 fill_policy: RING_BUFFER 28} 29 30 31data_sources: { 32 config { 33 name: "android.surfaceflinger.transactions" 34 target_buffer: 0 35 surfaceflinger_transactions_config: { 36 mode: MODE_ACTIVE 37 } 38 } 39} 40 41data_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 53data_sources: { 54 config { 55 name: "com.android.wm.shell.transition" 56 target_buffer: 2 57 } 58} 59 60data_sources: { 61 config { 62 name: "android.protolog" 63 protolog_config { 64 tracing_mode: ENABLE_ALL 65 } 66 target_buffer: 2 67 } 68} 69