JPenuchot / ctbench

Compiler-assisted variable size benchmarking for the study of C++ metaprogram compile times.

Home Page:https://jpenuchot.github.io/ctbench-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generic compiler execution time measurement

JPenuchot opened this issue · comments

commented

One way to easily add (limited) support for GCC would be to measure compiler execution time instead of relying on internal profiling data. This could be useful to compare metaprogram performance scaling across a variety of compilers.

The main issues are:

  • How to measure compiler execution time from CMake
  • How to adapt current data wrangling code for a new kind of format

And so far my favorite solutions are:

  • Adding compiler execution time measurement to the clang time-trace wrapper
  • Use the wrapper to generate a file in the same format as time-trace files, but only with compiler execution time data
commented

Ping @pkeir