]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #68720 - wesleywiser:llvm_time_trace, r=davidtwco
authorbors <bors@rust-lang.org>
Sun, 2 Feb 2020 20:33:47 +0000 (20:33 +0000)
committerbors <bors@rust-lang.org>
Sun, 2 Feb 2020 20:33:47 +0000 (20:33 +0000)
commit8f49d4629711986a59b1627f6390150324af162c
tree153dfc3abe2f4b7b3c4c0d210252299f9dd6f92d
parentf43c34a134358471726f25fe5973b8c7e177c825
parentf5f86be1d40f30b3183ec148f443afa73d0cbe15
Auto merge of #68720 - wesleywiser:llvm_time_trace, r=davidtwco

Add support for enabling the LLVM time-trace feature

I found this helpful while investigating an LLVM performance issue.
Passing `-Z llvm-time-trace` causes a `llvm_timings.json` file to be
created. This file can be inspected in with the Chrome Profiler
tools or with any other compatible tool like SpeedScope.

More information on the LLVM feature:

- https://aras-p.info/blog/2019/01/16/time-trace-timeline-flame-chart-profiler-for-Clang/

- https://reviews.llvm.org/rL357340
src/librustc_session/options.rs