[PATCH] D58599: [LLD] Add summary support

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 16:29:31 PST 2019


ruiu added a comment.

In D58599#1410086 <https://reviews.llvm.org/D58599#1410086>, @aganea wrote:

> In D58599#1409821 <https://reviews.llvm.org/D58599#1409821>, @ruiu wrote:
>
> > Could you elaborate a bit about why you want this feature?
> >
> > Instead of adding a flag, you might want to do that when /verbose is given.
>
>
> Essentially to have a better understanding of where the timings go. With many different clients and many different usages, seeing the `/time` values does not tell me what caused those timings. `/summary` gives me more hints on the "what" and also allows compares between different usages. This is primarily geared towards the PDB generation, because that's what takes the most time, and because that's where I'd like to put the most efforts on.
>
> In contrast, `/verbose` is more for the day-to-day users of the linker. For example if you want to understand wrong lib paths, or missing symbols.


It sounds like /summary is more like a developer option and should be hidden from the user. By hiding it, I mean the option shouldn't be in the option list in `/help`.



================
Comment at: COFF/PDB.cpp:1361
   }
 }
 
----------------
aganea wrote:
> ruiu wrote:
> > Looks like instead of pushing stats data to a `Summary` class and print it out later, you could print out the stats right here.
> That would skew profiles recorded for `/time`. I often use `/time` and  `/summary` at the same time.
You can stop the timer and resume it after you are done with summary.


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D58599





More information about the llvm-commits mailing list