[PATCH] D128451: [lld ELF and mac] Add --trace-to=<file> as short for --time-trace --time-trace-file=<file>

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 23 09:18:24 PDT 2022


thakis created this revision.
thakis added reviewers: MaskRay, lld-macho.
Herald added subscribers: StephenFan, arichardson, emaste.
Herald added projects: lld-macho, All.
thakis requested review of this revision.

Also, for mac, make --time-trace-file and --time-trace-granularity
*not* imply --time-trace, to match behavior of the ELF port.

---

My goal here is to have a short, single flag I can use to get LLD to write a trace, and to make ELF and MachO (and, in time, COFF – this requires teaching TimeProfiler to write a short summary to stdout and to switch lld/COFF to TimeTraceScope) behave the same way.


https://reviews.llvm.org/D128451

Files:
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/MachO/Driver.cpp
  lld/MachO/Options.td
  lld/test/ELF/time-trace.s
  lld/test/MachO/time-trace.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128451.439429.patch
Type: text/x-patch
Size: 5158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220623/e8cd5914/attachment.bin>


More information about the llvm-commits mailing list