commit | 9da9fc0c0670e88e3ef4473cbf136bd7cc66c6b3 | [log] [tgz] |
---|---|---|
author | Daniele Di Proietto <ddiproietto@google.com> | Mon Sep 05 11:01:22 2022 +0100 |
committer | Daniele Di Proietto <ddiproietto@google.com> | Mon Sep 05 11:04:50 2022 +0100 |
tree | 59d322f8bda55cb6666fb594d16edc623814ccec | |
parent | 0723d6822920f027d3007d5e3fde513c22fe58c3 [diff] |
Fix example_startup_trace build on windows trace_data[0] is technically undefined behavior if trace_data is empty (which happens on windows because IPC do not work, but can also happen on linux if the system tracing service has not been started). unistd.h does not exist on windows and is unused on linux. Startup tracing is not supported on windows, because the system backend does not work there, but this at least fixes the build. Change-Id: I55cab3832c05a90c6baaceec301ed4b4dcb030cc
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.