Decrease the verbosity of the -ftime-trace option
authorSylvestre Ledru <sylvestre@debian.org>
Tue, 1 Oct 2019 07:52:42 +0000 (07:52 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 1 Oct 2019 07:52:42 +0000 (07:52 +0000)
And move the relevant information in the doc.

Summary:
Currently, building a large software like Firefox shows
'Use chrome://tracing or Speedscope App (https://www.speedscope.app) for flamegraph visualization'
for each file.

Reviewers: anton-afanasyev

Reviewed By: anton-afanasyev

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D68260

llvm-svn: 373308

clang/docs/ClangCommandLineReference.rst
clang/tools/driver/cc1_main.cpp

index 385b70a..5f6bb98 100644 (file)
@@ -1942,7 +1942,8 @@ Perform ThinLTO importing using provided function summary index
 
 .. option:: -ftime-trace
 
-Turn on time profiler
+Turn on time profiler. Results can be analyzed with chrome://tracing or
+`Speedscope App <https://www.speedscope.app>`_ for flamegraph visualization
 
 .. option:: -ftime-trace-granularity=<arg>
 
index 9ed15f5..8ab713f 100644 (file)
@@ -271,9 +271,6 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
     llvm::timeTraceProfilerCleanup();
 
     llvm::errs() << "Time trace json-file dumped to " << Path.str() << "\n";
-    llvm::errs()
-        << "Use chrome://tracing or Speedscope App "
-           "(https://www.speedscope.app) for flamegraph visualization\n";
   }
 
   // Our error handler depends on the Diagnostics object, which we're