[CMake] cmake script profiler

Volo Zyko volo.zyko at gmail.com
Tue Apr 23 18:02:48 EDT 2013


On Wed, Apr 24, 2013 at 12:07 AM, Bill Hoffman <bill.hoffman at kitware.com>
wrote:
> That's funny.  I was just playing around with adding a profile option. My
approach was to sum up all the time spent in each function.  It does not
have a call stack but, should give you an idea of where it is spending the
bulk of the time.   I suppose you could post process the output of a trace
with your change, but that would be more work.

I have a Python script that processes the cmake trace and creates stack
traces. I'm polishing it right now and I'm planning  to make it public on
github or other similar service. No matter whether my patch for cmake will
be accepted or not the script might be useful for other people.

--
 Volo Zyko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130424/4e4da759/attachment.htm>


More information about the CMake mailing list