查看方法“methodExit”。参数“@Duration long time”中包含哪些时间单位?
package com.sun.btrace.samples;
import com.sun.btrace.Profiler;
import com.sun.btrace.annotations.*;
import static com.sun.btrace.BTraceUtils.*;
import java.awt.EventQueue;
import java.awt.AWTEvent;
import java.awt.event.FocusEvent;
@BTrace
public class AllMethods {
@OnMethod(
clazz="java.awt.EventQueue",
method="dispatchEvent",
location=@Location(Kind.RETURN))
public static void methodExit(@Duration long time, @ProbeMethodName String pmn) {
println(pmn + " " + (time / 1000000));
}
}