commit | 54a2e4165e9c9986a3ba68bacb6306d2dfc64888 | [log] [tgz] |
---|---|---|
author | Eli Lipsitz <elipsitz@google.com> | Wed Jan 18 00:24:45 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 18 00:24:45 2023 +0000 |
tree | cd203b855061300c808c56cf143b965cf594cb9f | |
parent | 01b7bd968623539cb27dd58e06977400ecedd42e [diff] |
pw_build: Add --write-trace option to pw-wrap-ninja This commit adds a new option to pw-wrap-ninja to write a trace file for the build, in the Chromium trace_event format. This trace can be opened with the Perfetto UI. This trace only includes timing information from the build, not dependency information from Ninja or additional compiler output. Thus, it is simpler than a more comprehensive tool such as Fuchsia's "ninjatrace". However, it's simple to use and still provides value. Tested: Built Pigweed with pw-wrap-ninja and the --write-trace option. Confirmed the trace was viewable with the Perfetto UI. Change-Id: I78e5717fb2257f74080def90fee253137defe3fd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126464 Commit-Queue: Eli Lipsitz <elipsitz@google.com> Reviewed-by: Rob Mohr <mohrr@google.com> Pigweed-Auto-Submit: Eli Lipsitz <elipsitz@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.