-qphsinfo
Pragma equivalent
None.
Purpose
Reports the time taken in each compilation phase to standard output.
Defaults
-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.
Examples
To compile myprogram.c and report the time taken for each phase of the compilation, enter the following command:
xlc myprogram.c -qphsinfo
The output will look similar to:
C Init - Phase Ends; 0.010/ 0.040
IL Gen - Phase Ends; 0.040/ 0.070
W-TRANS - Phase Ends; 0.000/ 0.010
OPTIMIZ - Phase Ends; 0.000/ 0.000
REGALLO - Phase Ends; 0.000/ 0.000
AS - Phase Ends; 0.000/ 0.000
Compiling the same program with -O4 gives:
C Init - Phase Ends; 0.010/ 0.040
IL Gen - Phase Ends; 0.060/ 0.070
IPA - Phase Ends; 0.060/ 0.070
IPA - Phase Ends; 0.070/ 0.110
W-TRANS - Phase Ends; 0.060/ 0.180
OPTIMIZ - Phase Ends; 0.010/ 0.010
REGALLO - Phase Ends; 0.010/ 0.020
AS - Phase Ends; 0.000/ 0.000
Compiling the same program
with -O4 gives:
Front End - Phase Ends; 0.004/ 0.006
IPA - Phase Ends; 0.040/ 0.040
IPA - Phase Ends; 0.220/ 0.280
W-TRANS - Phase Ends; 0.030/ 0.110
OPTIMIZ - Phase Ends; 0.030/ 0.030
REGALLO - Phase Ends; 0.010/ 0.050
AS - Phase Ends; 0.000/ 0.000