]> granicus.if.org Git - clang/commitdiff
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373308 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 385b70a5a89fa2b6e90510c895422a4da3407dc5..5f6bb9829f5af0f89f280c5c14bd451934bbb644 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 9ed15f51b11466323b34ff7d09fb4a263a91b17c..8ab713fd2954a60307e649b7fa32a9410aa700cd 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