<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/99011>99011</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lld-link does not support /time
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JVApen
      </td>
    </tr>
</table>

<pre>
    Lld-link does not support [`/time`](https://learn.microsoft.com/en-us/cpp/build/reference/time-linker-time-information?view=msvc-170) as a command line option. The alternative `--time-trace` of lld ain't available either.
We've tried with `/mllvm`, though as `--time-trace` does not exist on llvm-level, it cannot be used either and a linker variant of `-Xclang` doesn't exist in lld-link.

When using `link.exe`, the `/time` gives:
````
  Wait PDB close: Total time = 0.000s
  Wait type merge: Total time = 0.000s
   Creating library library.lib and object library.exp
LibDef: Total time = 0.219s
  MD Merge: Total time = 0.015s
  Generate Transitions: Total time = 0.000s
  MD Finalize: Total time = 0.000s
Pass 1: Interval #1, time = 0.610s
  Wait PDB close: Total time = 0.000s
  Wait type merge: Total time = 0.000s
Pass 2: Interval #2, time = 0.031s
Final: Total time = 0.641s
````

Our internal monitoring of the link times has been broken by our switch from lld-link to link, which we did for performance reasons.
Without either of the 2 options, we are forced to use `link` in this monitoring, although we don't use that as a linker.
The information we currently extract from this are: the library name and the total time.
I believe that this information is also available in the `--time-trace` of lld, though I'm not sure about the library name.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VUFv4zgP_TXKhYghy0lcH3zoTOAP_TDFzqHY2ats0zF3ZMmQZKfdX7-Q7KRpt7M9LRDEhkw-PpLio3SOThqxZPsvbH_cyMn3xpb___1-RL2pTftSflPtVpH-Ca1BB9p4cNM4Gush-Bw4E5WnAcPb_sjEXe_96Fh2z0TFRKVQWp0M1FjjTOeTxgxMVKi3k2OiasaRiaqeSLVMVBY7tKgbXCFjWL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