traced_perf parsing support in ui.perfetto.dev

212 views
Skip to first unread message

oliver wang

unread,
Jun 1, 2022, 4:52:14 AM6/1/22
to Perfetto Development - www.perfetto.dev
Hi,

Noticed perfetto already support traced_perf service/producer in Android S/T, and i tried to capture some trace with following config. It seems trace events logging works because I got a 300KB trace file. However when i upload this file to ui.perfetto.dev, it shows nothing but some empty lines.

```
adb shell perfetto \
  -c - --txt \
  -o /data/misc/perfetto-traces/trace \
<<EOF

buffers: {
    size_kb: 63488
    fill_policy: RING_BUFFER
}

data_sources: {
    config {
        name: "linux.perf"
        perf_event_config: {
            timebase {
                frequency: 4000
            }
            target_pid: 1243
            callstack_sampling {
                scope {
                   target_pid: 1243
                }
                kernel_frames: true
            }
        }
    }
}
duration_ms: 10000

EOF
```


Any ideas?

Thanks,
Oliver

oliver wang

unread,
Jun 1, 2022, 4:55:15 AM6/1/22
to Perfetto Development - www.perfetto.dev
图片20220601165436.png

Lalit Maganti

unread,
Jun 1, 2022, 9:17:30 AM6/1/22
to oliver wang, Ryan Savitski, Perfetto Development - www.perfetto.dev
The flamegraph for perf profiles is currently hidden behind a feature flag. In the "Flags" section, you need to enable "Perf Sample Flamegraph".

+Ryan Savitski should this be enabled by default at this point? The flamegraph is pretty stable AFAIK these days?

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/perfetto-dev/5eb14705-a74e-467c-8bef-df5957db64d6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages