mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
perfetto: enabled traced_perf by compiling with clang
traced_perf is required for using e.g. callstack_sampling, see https://perfetto.dev/docs/getting-started/cpu-profiling Tested on qemu: Starting perfetto using a configuration which uses `callstack_sampling` starts traced_perf as a side-effect when perfetto is compiled with clang: ``` root@qemux86-64:~# tracebox --txt -c /tmp/config.pbtxt -o /tmp/perfetto-trace.pb & root@qemux86-64:~# ps -eo pid,cmd | grep tracebox 529 tracebox --txt -c /tmp/config.pbtxt -o /tmp/perfetto-trace.pb 530 /usr/bin/tracebox traced 533 /usr/bin/tracebox traced_probes --reset-ftrace 536 /usr/bin/tracebox traced_perf ``` Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
1b2ebce563
commit
ab5cd440b3
|
|
@ -51,6 +51,9 @@ require perfetto.inc
|
|||
|
||||
DEPENDS += " ninja-native"
|
||||
|
||||
# Use clang in order to enable traced_perf ( see https://github.com/google/perfetto/blob/092d0ceace6fa516fac1bd4e715c226eaaebe26e/gn/perfetto.gni#L177 ,
|
||||
# enable_perfetto_traced_perf depends on "is_clang")
|
||||
TOOLCHAIN = "clang"
|
||||
COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm).*-linux*"
|
||||
|
||||
CCACHE_DISABLE = "1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user