I've updated the XmlLogger class and its corresponding
tests so that they output the duration of executed
targets or tasks (in milliseconds). This will help us
profile our build in order to determine where we should
focus on improving the build time.
This functionality is currently in the Ant XmlLogger;
however, because of the difference between the
feed-forward .NET XmlWriter vs. the Ant DOM-based
approach, I set the logger up to output the duration as
an element at the end of the target/task rather than as
an attribute. So there is slight syntax difference,
but semantically they are the same.
I am in the process of building support for this into
CruiseControl.NET and it would be great to see this
included in the 0.85 release. I would commit it
myself, but considering that I've hardly been active on
the NAnt list for years, I thought that I would submit
it for review.
Log in to post a comment.