[PATCH] D41915: [lldCOFF] Print detailed timing information with /VERBOSE

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 17:09:13 PST 2018


ruiu added a comment.

I tried to run this patch and found that printing out the timer tree as a tree  like this

  Total Link Time:              (100.00%)  6470 ms
    Input File Reading:         (  0.00%)     0 ms
    ICF:                        (  0.00%)     0 ms
    GC:                         (  0.00%)     0 ms
    LTO:                        (  0.00%)     0 ms
    Code Layout:                (  0.00%)     0 ms
    Commit Output File:         (  0.00%)     0 ms
    PDB Emission (Cumulative):  (  0.00%)     0 ms
      Add Objects:              (  0.00%)     0 ms
        Type Merging:           (  0.00%)     0 ms
        Symbol Merging:         (  0.00%)     0 ms
    ...

is more natural than the current format

    Input File Reading:         (  0.00%)     0 ms
    ICF:                        (  0.00%)     0 ms
    GC:                         (  0.00%)     0 ms
    LTO:                        (  0.00%)     0 ms
    Code Layout:                (  0.00%)     0 ms
    Commit Output File:         (  0.00%)     0 ms
    PDB Emission (Cumulative):  (  0.00%)     0 ms
      Add Objects:              (  0.00%)     0 ms
        Type Merging:           (  0.00%)     0 ms
        Symbol Merging:         (  0.00%)     0 ms
    ...
  -------------------------------------------------
  Total Link Time:              (100.00%)  6470 ms

which handles only the root timer in a special way because the former represents a tree as-is. Do you mind if I ask you to change the format?


https://reviews.llvm.org/D41915





More information about the llvm-commits mailing list