cmake: add command line option to output script profiling data
For users of CMake who want to optimize their scripts if they take a while to run, this commit adds the ability to output profiling data.
To enable this output, it adds the command line parameters that take a location and a format.
It adds support for the google-trace
format.
Edited by dublet