[PATCH] D69043: [RFC] Adding time-trace to LLD?

Russell Gallop via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 06:31:53 PDT 2019


russell.gallop added a comment.

In D69043#1712542 <https://reviews.llvm.org/D69043#1712542>, @ruiu wrote:

> This seems useful. Can I see an example output?


Thanks.

Here's an example from Building clang with ThinLTO: F10296420: clang-10.json <https://reviews.llvm.org/F10296420>

Using linker flags: -Wl,-time-trace -Wl,-time-trace-granularity=50000

I increased the granularity from the default, otherwise the trace gets very large (~800MiB).

> Speaking of the output file, I'd make --time-trace option to take an output filename, as an output executable doesn't always have an extension (On Windows it's almost always .exe, but on Unix, extension is usually omitted).

Okay. I'll look at doing that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69043/new/

https://reviews.llvm.org/D69043





More information about the llvm-commits mailing list