Index: lld/docs/ReleaseNotes.rst =================================================================== --- lld/docs/ReleaseNotes.rst +++ lld/docs/ReleaseNotes.rst @@ -24,6 +24,10 @@ ELF Improvements ---------------- +* New ``--time-trace`` option records a time trace file that can be viewed in + chrome://tracing. The file can be specified with ``--time-trace-file``. + Trace granularity can be specified with ``--time-trace-granularity``. + (`D71060 `_) * ... COFF Improvements Index: lld/docs/ld.lld.1 =================================================================== --- lld/docs/ld.lld.1 +++ lld/docs/ld.lld.1 @@ -532,6 +532,13 @@ (default) means all of concurrent threads supported. .Cm 1 disables multi-threading. +.It Fl -time-trace +Record time trace. +.It Fl -time-trace-file Ns = Ns Ar file +Write time trace output to +.Ar file . +.It Fl -time-trace-granularity Ns = Ns Ar value +Minimum time granularity (in microseconds) traced by time profiler. .It Fl -trace Print the names of the input files. .It Fl -trace-symbol Ns = Ns Ar symbol , Fl y Ar symbol