【发布时间】:2016-07-24 12:44:27
【问题描述】:
当使用 perf4J 时,这段代码运行良好:
StopWatch stopWatch = new LoggingStopWatch();
stopWatch.stop("example1", "custom message text");
但是在使用@Profiled 时,如何输出或获取度量,用最少的代码:
@Profiled(tag = "dynamicTag_{$0}")
public void boucle(int k)
{
// My code to profile
}
【问题讨论】: