How can write logs to a file in btrace?
问题 I have following btrace script. I would like to record entry and exit of functions in a specific class. .. package com.sun.btrace.samples; import com.sun.btrace.BTraceUtils; import com.sun.btrace.Profiler; import com.sun.btrace.annotations.*; @BTrace class Profiling { @Property Profiler swingProfiler = BTraceUtils.Profiling.newProfiler(); @OnMethod( clazz="com.pkg.classname", method="/.*/") void entry(@ProbeMethodName(fqn=true) String probeMethod) { BTraceUtils.print("Entry" ); BTraceUtils