This is an archive of the discontinued LLVM Phabricator instance.

Remove time-trace message as it is inconsistent style
ClosedPublic

Authored by russell.gallop on Oct 9 2019, 8:50 AM.

Details

Summary

https://reviews.llvm.org/D68260 removed some of the message that -ftime-trace prints out. Running large builds still prints out a lot of "Time trace json-file dumped to " messages which are not the normal style for clang and are not necessary for locating the trace file.

There are other options which create files but don't tell you where they've written them. For example, this command generates a time trace, an yaml optimization record and a dependency file but only tells you about the time trace file:

$ clang -c foo.cpp -ftime-trace -fsave-optimisation-record -MD
Time trace json-file dumped to foo.json
$ ls
foo.cpp foo.d foo.json foo.o foo.opt.yaml

Supplemented the command line reference to help users locate this file and updated Options.td which is used to generate ClangCommandLineReference and clang --help.

Diff Detail

Event Timeline

russell.gallop created this revision.Oct 9 2019, 8:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2019, 8:50 AM
russell.gallop retitled this revision from Remove time-trace message as it inconsistent style to Remove time-trace message as it is inconsistent style.Oct 9 2019, 9:03 AM
sylvestre.ledru added inline comments.Oct 9 2019, 9:31 AM
clang/include/clang/Driver/Options.td
1795

I am not a big fan of adding products in the in-product help.
If Chrome removes the feature or Speedscope goes done, we will still list that in the old version of clang.
Deprecated doc is more common and accepted.

I would remove this line and the next line and keep the doc.

besides that, I think we should do it; thanks :)

Update so --help helps user find trace file.
Documentation has the further details on how to view it.

russell.gallop marked 2 inline comments as done.Oct 10 2019, 1:53 AM
russell.gallop added inline comments.
clang/include/clang/Driver/Options.td
1795

I would remove this line and the next line and keep the doc.

I agree. Updated to do that via the tablegen file. Removed the changes to the rst file which is generated from tablegen.

anton-afanasyev accepted this revision.Oct 10 2019, 2:11 AM

Yes, I agree. LGTM.

This revision is now accepted and ready to land.Oct 10 2019, 2:11 AM
This revision was automatically updated to reflect the committed changes.
russell.gallop marked an inline comment as done.