[cmake-developers] Profile Cmake scripts

Alexander Neundorf neundorf at kde.org
Sun Dec 27 15:05:53 EST 2015

On Sunday, December 27, 2015 18:40:27 Dimitar Yordanov wrote:
> Hi all,
> I was searching for a way to profile CMake scripts in order to find
> bottlenecks and possibilities to improve performance. I found out that
> someone already invested time on that [1] providing a minimal 
solution. The
> idea behind it is to use the cmake "--trace" option and to output a time
> stamp and a stack depth with each executed command. The trace log 
> afterwards used by a Python script, which transforms it into a more
> readable format.

I actually simply used valgrind/callgrind and got useful results from that.
Usually you see mostly string handling related functions.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151227/ae70f5b3/attachment.html>

More information about the cmake-developers mailing list