The current support of the feature produces only 2 lines in report:
- Some general Code Generation Time
- Total time of Backend Consumer actions
This patch extends Clang time report with the following lines:
-------------------------------------------------------------------------
===== Clang Parser =====
-------------------------------------------------------------------------
Total Execution Time: 0.0160 seconds (0.0189 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 0.0080 ( 66.7%) 0.0040 (100.0%) 0.0120 ( 75.0%) 0.0114 ( 60.3%) Parse Template 0.0040 ( 33.3%) 0.0000 ( 0.0%) 0.0040 ( 25.0%) 0.0057 ( 30.2%) Parse Function Body 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0011 ( 5.8%) PP Macro Expansion 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0005 ( 2.4%) Scope manipulation 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.5%) Annotation operations 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.5%) PP Macro Call Args 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.3%) PP Find Handler 0.0120 (100.0%) 0.0040 (100.0%) 0.0160 (100.0%) 0.0189 (100.0%) Total
We could add more lines in the report but it'd be nice to understand what we'd like to see.
Please don't reorder header files in the patch (you can commit such changes separately before the patch).