dongjunduo added a comment.

In D131469#3775741 <https://reviews.llvm.org/D131469#3775741>, @MaskRay wrote:

> I appreciate the detailed summary. It has sufficient information but I think 
> it can be rephased to be conciser.
> I request changes for the verbosity and the possibly functionality issue.
>
>> We can use -ftime-trace or -ftime-trace=<path> to switch on the TimeProfiler.
>
> "We can use" can be omitted => "-ftime-trace or -ftime-trace=<path> enables 
> ..."
>
>> The source files should be compiled into object files (.o) by clang, and 
>> then linked into executable file by the linker.
>
> This is basic knowledge and can be removed.
>
>   "-ftime-trace or -ftime-trace=<path> enables ..."
>
>
>
>> Where to store for now?
>
> If we want a detailed description, the whole paragraph is really something 
> which should go to https://clang.llvm.org/docs/UsersManual.html
> Then, this patch summary (commit message) can just refer to it.
>
> ---
>
> I'd delete everything and keep just
>
> `-ftime-trace` and `-ftime-trace=<path>` enable the TimeProfiler.
> When Clang does compile and link actions in one command and `-ftime-trace` is 
> used, the JSON file currently goes to a temporary directory, e.g.
>
>   $ clang++ -ftime-trace -o main.out /demo/main.cpp
>   $ ls .
>   main.out
>   $ ls /tmp/
>   main-[random-string].json
>
> The JSON file location is undesired. This patch changes the location based on 
> the specified ...
>
> ---
>
> What if an input file and the output is in directories, e.g.
>
>   % myclang -ftime-trace a/a.c -o b/a; ls *.json
>   a-a7cffa.json
>
> Does the patch achieve what it intends to do?

Nice idea. I have simplified the related description. : )


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131469/new/

https://reviews.llvm.org/D131469

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to