Hello, I recently ran into problems with perfetto, which I configured
val config = StringBuilder()
.append("write_into_file: true\n")
.append("flush_period_ms: 30000\n")
.append("notify_traceur: true\n")
.append("incremental_state_config {\n")
.append(" clear_period_ms: 15000\n")
.append("}\n")
.append("file_write_period_ms: 1000\n")
.append("buffers {\n")
.append(" size_kb: 63488\n")
.append(" fill_policy: RING_BUFFER\n")
.append("}\n")
.append("buffers {\n")
.append(" size_kb: 2048\n")
.append(" fill_policy: RING_BUFFER\n")
.append("}\n")
.append("data_sources: {\n")
.append(" config {\n")
.append(" name: \"android.surfaceflinger.layers\"\n")
.append(" target_buffer: 1\n")
.append(" surfaceflinger_layers_config: {\n")
.append(" mode: MODE_UNSPECIFIED\n")
.append(" trace_flags: TRACE_FLAG_INPUT\n")
.append(" trace_flags: TRACE_FLAG_COMPOSITION\n")
.append(" trace_flags: TRACE_FLAG_HWC\n")
.append(" trace_flags: TRACE_FLAG_BUFFERS\n")
.append(" trace_flags: TRACE_FLAG_VIRTUAL_DISPLAYS\n")
.append(" }\n")
.append(" }\n")
.append("}\n")
.append("duration_ms: 0\n")
This configuration will catch the layer_trace file on user phones, but will catch the layer_trace,wm.log, and wm_trace files on root phones. Why is the wm file crawled by root