File tree Expand file tree Collapse file tree
btrace-agent/src/main/java/org/openjdk/btrace/agent
btrace-client/src/main/java/org/openjdk/btrace/client
btrace-core/src/main/java/org/openjdk/btrace/core/comm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383import org .openjdk .btrace .core .comm .ErrorCommand ;
8484import org .openjdk .btrace .core .comm .InstrumentCommand ;
8585import org .openjdk .btrace .core .comm .StatusCommand ;
86+ import org .openjdk .btrace .core .comm .WireIO ;
8687import org .openjdk .btrace .instr .BTraceTransformer ;
8788import org .openjdk .btrace .instr .Constants ;
8889import org .openjdk .btrace .runtime .BTraceRuntimes ;
@@ -836,6 +837,8 @@ private static void startServer() {
836837 debugPrint ("starting server at " + port );
837838 }
838839 System .setProperty ("btrace.port" , String .valueOf (port ));
840+ System .setProperty ("btrace.wireio" , String .valueOf (WireIO .VERSION ));
841+
839842 String scriptOutputFile = settings .getOutputFile ();
840843 if (scriptOutputFile != null && scriptOutputFile .length () > 0 ) {
841844 System .setProperty ("btrace.output" , scriptOutputFile );
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ static Collection<String> listVms() {
4545 String mainClass = MonitoredVmUtil .mainClass (mvm , false );
4646
4747 vms .add (
48- "[ "
48+ "( "
4949 + (hasBTraceServer (vmPid ) ? "+" : "-" )
50- + "] "
50+ + ") "
5151 + vmPid
5252 + " "
5353 + mainClass
Original file line number Diff line number Diff line change 55import java .io .ObjectOutput ;
66import java .io .PrintWriter ;
77
8+ /** @since WireIO v.1 */
89public final class DisconnectCommand extends Command implements PrintableCommand {
910 private String probeId = "" ;
1011
Original file line number Diff line number Diff line change 88import java .util .Collection ;
99import java .util .List ;
1010
11+ /** @since WireIO v.1 */
1112public class ListProbesCommand extends Command implements PrintableCommand {
1213 private final List <String > probes = new ArrayList <>();
1314
Original file line number Diff line number Diff line change 44import java .io .ObjectInput ;
55import java .io .ObjectOutput ;
66
7+ /** @since WireIO v.1 */
78public class ReconnectCommand extends Command {
89 public static final int STATUS_FLAG = 8 ;
910
Original file line number Diff line number Diff line change 2929import java .io .ObjectOutput ;
3030
3131public class WireIO {
32+ public static final int VERSION = 1 ;
3233
3334 private WireIO () {}
3435
Original file line number Diff line number Diff line change 1+ plugins {
2+ id ' net.nemerosa.versioning' version ' 2.6.1'
3+ }
4+
5+ sourceCompatibility = ' 11'
6+ targetCompatibility = ' 11'
7+
8+ dependencies {
9+ compile project(' :btrace-core' )
10+ compile project(' :btrace-compiler' )
11+ compile project(' :btrace-instr' )
12+ }
13+
14+ jar {
15+ manifest {
16+ attributes(
17+ ' Built-By' : System . properties[' user.name' ],
18+ ' Build-Timestamp' : new java.text.SimpleDateFormat (" yyyy-MM-dd'T'HH:mm:ss.SSSZ" ). format(new Date ()),
19+ ' Build-Revision' : versioning. info. commit,
20+ ' Created-By' : " Gradle ${ gradle.gradleVersion} " ,
21+ ' Build-Jdk' : " ${ System.properties['java.version']} (${ System.properties['java.vendor']} ${ System.properties['java.vm.version']} )" ,
22+ ' Build-OS' : " ${ System.properties['os.name']} ${ System.properties['os.arch']} ${ System.properties['os.version']} " ,
23+ ' Main-Class' : " org.openjdk.btrace.client.Main"
24+ )
25+ }
26+ }
You can’t perform that action at this time.
0 commit comments