Apply Linux-specific fixes This CL applies the necessary fixes to get cperfetto (and the static version cperfetto_static) to build under Linux. It patches a few clang errors and windows-specific code (__declspec). To compile this code: - `python3 ./tools/install-build-deps` - `gn gen --args='is_debug=true' out/debug` - `ninja -C out/debug cperfetto` or `ninja -C out/debug cperfetto_static` BUG=b:277837670 TEST=compiled cperfetto_static and verified libperfetto_static.a exists Change-Id: I7a804fbd5f20c685d78bce030136b1abe3e5df02 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/perfetto/+/4669640 Reviewed-by: Colin Downs-Razouk <colindr@google.com> Auto-Submit: Morg <morg@google.com> Reviewed-by: Noah Gold <nkgold@google.com>
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.
This repository is a crosvm-specific copy of a google-internal perfetto repository modified for use on Windows with Rust. It is not a full fork of the external repository as it does not preserve the repo commit history. It is instead checkpointed from a specific (internal) git commit hash.