sofa icon indicating copy to clipboard operation
sofa copied to clipboard

[How-to] Profile CMake configuration

Open fredroy opened this issue 4 years ago • 1 comments

cmake . --profiling-format=google-trace --profiling-output=cmake_trace.json

and then with Chrome (I am sure there are external tools by the way), set the URL to about://tracing and load your JSON file within the web app.

What you should obtain at the end: cmake0

fredroy avatar Feb 19 '21 08:02 fredroy

Actually it is the same output as with the clang with the -ftime-trace to trace compilation. Seems that google trace is become de-facto standard. We probably need to think about writing our Advencded timer traces in that format

damienmarchal avatar Feb 19 '21 10:02 damienmarchal