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# Buffer 3: for android.input.inputevent 31buffers { 32 size_kb: 2048 33 fill_policy: RING_BUFFER 34} 35 36data_sources: { 37 config { 38 name: "android.surfaceflinger.transactions" 39 target_buffer: 0 40 surfaceflinger_transactions_config: { 41 mode: MODE_ACTIVE 42 } 43 } 44} 45 46data_sources: { 47 config { 48 name: "android.surfaceflinger.layers" 49 target_buffer: 1 50 surfaceflinger_layers_config: { 51 mode: MODE_GENERATED_BUGREPORT_ONLY 52 trace_flags: TRACE_FLAG_INPUT 53 trace_flags: TRACE_FLAG_BUFFERS 54 } 55 } 56} 57 58data_sources: { 59 config { 60 name: "com.android.wm.shell.transition" 61 target_buffer: 2 62 } 63} 64 65data_sources: { 66 config { 67 name: "android.protolog" 68 protolog_config { 69 tracing_mode: ENABLE_ALL 70 } 71 target_buffer: 2 72 } 73} 74 75data_sources: { 76 config { 77 name: "android.input.inputevent" 78 target_buffer: 3 79 android_input_event_config { 80 mode: TRACE_MODE_USE_RULES 81 rules { 82 trace_level: TRACE_LEVEL_NONE 83 match_secure: true 84 } 85 rules { 86 trace_level: TRACE_LEVEL_COMPLETE 87 match_all_packages: "com.android.shell" 88 match_all_packages: "com.android.systemui" 89 match_all_packages: "com.google.android.apps.nexuslauncher" 90 match_all_packages: "com.google.android.googlequicksearchbox" 91 match_all_packages: "com.google.android.settings.intelligence" 92 match_ime_connection_active: false 93 } 94 rules { 95 trace_level: TRACE_LEVEL_REDACTED 96 } 97 trace_dispatcher_input_events: true 98 trace_dispatcher_window_dispatch: true 99 } 100 } 101} 102