-ftime-report (-qphsinfo)
Pragma equivalent
None.
Purpose
Reports the time taken in each compilation phase to standard output.
Syntax
>>- -ftime-report----------------------------------------------><
.-nophsinfo-. >>- -q--+-phsinfo---+------------------------------------------><
Defaults
-ftime-report is not on by default.
-qnophsinfo
Usage
The output takes the form number1/number2 for each phase where number1 represents the CPU time used by the compiler and number2 represents real time (wall clock time).
The time reported by -qphsinfo is in seconds.
Predefined macros
None.
Example
To compile myprogram.c and report the time taken for each phase of the compilation, enter the following command:
xlc myprogram.c -ftime-report
The output looks like:
---Wall Time--- --- Name ---
0.0011 (100.0%) Clang front-end timer
0.0011 (100.0%) Total
Front End - Phase Ends; 0.000/ 0.000
Compilation Time = 0:0.001088
Gen IL Time = 0:0.000288
Optimization Time = 0:0.000264
Code Gen Time = 0:0.000528