Is there an Ant
profiler that will run my ant script and tell me how long targets, tasks and operations took to complete?
Thanks
Ant has two related features to allow the build process to be monitored => listeners and loggers :
- Ant >= 1.8.x ships with the ProfileLogger
- Ant statistics, a logger that logs executions times for all targets, and graphs them over the time
- Performance Monitor from antcontrib, a listener that keeps track of the amount of time that each target and task takes to execute and prints a final summary
or write your own.
YourKit YouMonitor is able to profile Ant, Maven, Gradle and many other build tools https://www.yourkit.com/youmonitor/
disclaimer: I work for YourKit
来源:https://stackoverflow.com/questions/13093181/apache-ant-profiler