llvm/clang/tools/driver
dongjunduo f5d9de8cc3 [Clang] Add a new clang option "-ftime-trace=<value>"
The time profiler traces the stages during the clang compile
process. Each compiling stage of a single source file
corresponds to a separately .json file which holds its
time tracing data. However, the .json files are stored in the
same path/directory as its corresponding stage's '-o' option.
For example, if we compile the "demo.cc" to "demo.o" with option
"-o /tmp/demo.o", the time trace data file path is "/tmp/demo.json".

A typical c++ project can contain multiple source files in different
path, but all the json files' paths can be a mess.

The option "-ftime-trace=<value>" allows you to specify where the json
files should be stored. This allows the users to place the time trace
data files of interest in the desired location for further data analysis.

Usage:
    - clang/clang++ -ftime-trace ...
    - clang/clang++ -ftime-trace=the-directory-you-want ...
    - clang/clang++ -ftime-trace=the-directory-you-want/ ...
    - clang/clang++ -ftime-trace=the-full-file-path-you-want ...

Differential Revision: https://reviews.llvm.org/D128048
2022-07-15 08:55:17 -07:00
..
cc1_main.cpp [Clang] Add a new clang option "-ftime-trace=<value>" 2022-07-15 08:55:17 -07:00
cc1as_main.cpp [MC] Fix likely uninitialized memory bug 2022-06-13 07:41:17 -04:00
cc1gen_reproducer_main.cpp
CMakeLists.txt LLVM Driver Multicall tool 2022-06-06 04:27:32 +00:00
driver.cpp [clang] Use value instead of getValue (NFC) 2022-07-13 23:39:33 -07:00
Info.plist.in