commit | 61f4b96c505d81a298376358b231add8ba681679 | [log] [tgz] |
---|---|---|
author | Jahdiel Alvarez <jahdiel@google.com> | Wed Dec 11 08:20:59 2024 -0800 |
committer | Jahdiel Alvarez <jahdiel@google.com> | Wed Dec 11 09:24:20 2024 -0800 |
tree | 25a094dc903644b8912598b6edd50d9c8c491ea0 | |
parent | 785e8114ad2c9f4c9867691e39c6a03e66c2cdcc [diff] |
Updated perfetto's GN build files to support traced compilation in QNX Created new argument 'is_qnx' to handle all QNX-specific compilation steps in GN build system. Currently, compilation for QNX is only supported via perfetto's standalone builds. Also, updated the perfetto's codebase to avoid running Linux-specific code in QNX. When compiling for QNX the PERFETTO_OS_LINUX flag is still set to keep the QNX build as compatible as possible with the Linux build. With this change, one can build the QNX target of traced by compiling with the following args.gn file: ''' target_os = "qnx" target_cpu = "arm64" ''' Only arm64 architecture is supported and one needs to setup the QNX developer environment before being able to compile. NOTE: traced_relay compiles but still does not run with this change. Test: tools/ninja -C out/qnx traced traced_relay perfetto Bug: 382283537 Change-Id: I08bd3672a60b69cb92ba87eaeda9cec5b893afbc
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.