本文介绍了Apache Ant 分析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有 Ant 分析器可以运行我的 ant 脚本并告诉我完成目标、任务和操作需要多长时间?

Is there an Ant profiler that will run my ant script and tell me how long targets, tasks and operations took to complete?

谢谢

推荐答案

Ant 有两个相关的功能可以监控构建过程 => 侦听器和记录器 :

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

自己编写.

这篇关于Apache Ant 分析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 01:21