From: Sylvestre Ledru Date: Tue, 1 Oct 2019 07:52:42 +0000 (+0000) Subject: Decrease the verbosity of the -ftime-trace option X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7009204bd28ff8429f31884f3111de3a7b2e3fde;p=platform%2Fupstream%2Fllvm.git Decrease the verbosity of the -ftime-trace option 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 --- diff --git a/clang/docs/ClangCommandLineReference.rst b/clang/docs/ClangCommandLineReference.rst index 385b70a..5f6bb98 100644 --- a/clang/docs/ClangCommandLineReference.rst +++ b/clang/docs/ClangCommandLineReference.rst @@ -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 `_ for flamegraph visualization .. option:: -ftime-trace-granularity= diff --git a/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp index 9ed15f5..8ab713f 100644 --- a/clang/tools/driver/cc1_main.cpp +++ b/clang/tools/driver/cc1_main.cpp @@ -271,9 +271,6 @@ int cc1_main(ArrayRef 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