mold icon indicating copy to clipboard operation
mold copied to clipboard

llvm lld compatibility --time-trace and --time-trace-file

Open petr-tik opened this issue 3 years ago • 2 comments

given you were the author, i understand you are familiar with the --time-trace implementation and I was wondering if you were planning to add it to mold. https://reviews.llvm.org/D71060

I understand there is already a --perf flag that must be sufficient for you, so this is a hopeful and rather timid feature request

petr-tik avatar Jun 06 '22 22:06 petr-tik

We can print out a time trace in JSON, but you still wouldn't be able to compare it with lld's output, since our internal structure is different from lld. It's not going to be an apple-to-apple comparison. So I wonder what is your motivation.

rui314 avatar Jun 07 '22 01:06 rui314

Note: https://reviews.llvm.org/D128451 (milestone: lld 15.0.0) added --time-trace= and removed --time-trace-file=.

MaskRay avatar Jun 26 '22 23:06 MaskRay