Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions profiler/lib.profiler/nbproject/org-netbeans-lib-profiler.sig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Signature file v4.1
#Version 1.143
#Version 1.144

CLSS public abstract interface java.io.Serializable

Expand Down Expand Up @@ -102,7 +102,7 @@ meth public int getCurrentAgentId()
meth public int getCurrentInstrType()
meth public int getDefiningClassLoaderId(java.lang.String,int) throws org.netbeans.lib.profiler.client.ClientUtils$TargetAppOrVMTerminated
meth public int[] getAllocatedObjectsCountResults() throws org.netbeans.lib.profiler.client.ClientUtils$TargetAppOrVMTerminated
meth public java.io.ObjectInputStream getSocketInputStream()
meth public java.io.DataInputStream getSocketInputStream()
meth public java.lang.String[][] getMethodNamesForJMethodIds(int[]) throws org.netbeans.lib.profiler.client.ClientUtils$TargetAppOrVMTerminated
meth public long getInstrProcessingTime()
meth public org.netbeans.lib.profiler.ProfilerEngineSettings getSettings()
Expand Down Expand Up @@ -4375,7 +4375,7 @@ supr org.netbeans.lib.profiler.wireprotocol.Response
hfds agentId,agentVersion,bootClassPath,canInstrumentConstructor,javaClassPath,javaCommand,javaExtDirs,jdkVersionString,jvmArguments,maxHeapSize,startupTimeInCounts,startupTimeMillis,targetMachineOSName,workingDir

CLSS public org.netbeans.lib.profiler.wireprotocol.WireIO
cons public init(java.io.ObjectOutputStream,java.io.ObjectInputStream)
cons public init(java.io.DataOutputStream,java.io.DataInputStream)
meth public java.lang.Object receiveCommandOrResponse() throws java.io.IOException
meth public long wasAlive()
meth public void sendComplexCommand(org.netbeans.lib.profiler.wireprotocol.Command) throws java.io.IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

package org.netbeans.lib.profiler;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ConnectException;
import java.net.Socket;
import java.text.MessageFormat;
Expand Down Expand Up @@ -369,8 +370,8 @@ public void run() {
private final Object instrumentationLock = new Object(); // To make sure all instrumentation-related operations
// happen serially
private final Object responseLock = new Object();
private ObjectInputStream socketIn;
private ObjectOutputStream socketOut;
private DataInputStream socketIn;
private DataOutputStream socketOut;
private ProfilerEngineSettings settings;
private ProfilingSessionStatus status;
private volatile Response lastResponse;
Expand Down Expand Up @@ -770,7 +771,7 @@ public ProfilerEngineSettings getSettings() {
// public CPUCallGraphBuilder getCPUCallGraphBuilder() { return ccgb; }

// public MemoryCallGraphBuilder getMemoryCallGraphBuilder() { return mcgb; }
public ObjectInputStream getSocketInputStream() {
public DataInputStream getSocketInputStream() {
return socketIn;
}

Expand Down Expand Up @@ -1714,8 +1715,8 @@ public void run() {
clientSocket = new Socket(host, port);
clientSocket.setSoTimeout(0); // ATTENTION: timeout may be found useful eventually...
clientSocket.setTcpNoDelay(true); // Necessary at least on Solaris to avoid delays in e.g. readInt() etc.
socketOut = new ObjectOutputStream(clientSocket.getOutputStream());
socketIn = new ObjectInputStream(clientSocket.getInputStream());
socketOut = new DataOutputStream(clientSocket.getOutputStream());
socketIn = new DataInputStream(clientSocket.getInputStream());
wireIO = new WireIO(socketOut, socketIn);

targetVMAlive = true; // This is in fact an assumption
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ public void terminate() {

//~ Instance fields ----------------------------------------------------------------------------------------------------------

private ObjectInputStream socketIn;
private ObjectOutputStream socketOut;
private DataInputStream socketIn;
private DataOutputStream socketOut;
private ServerSocket serverSocket;
private Socket clientSocket;
private WireIO wireIO;
Expand Down Expand Up @@ -1257,8 +1257,8 @@ private boolean connectToClient() {
createInfoFile();
clientSocket = serverSocket.accept();
clientSocket.setTcpNoDelay(true); // Necessary at least on Solaris to avoid delays in e.g. readInt() etc.
socketIn = new ObjectInputStream(clientSocket.getInputStream());
socketOut = new ObjectOutputStream(clientSocket.getOutputStream());
socketIn = new DataInputStream(clientSocket.getInputStream());
socketOut = new DataOutputStream(clientSocket.getOutputStream());
wireIO = new WireIO(socketOut, socketIn);
connectionOpen = true;
System.out.println(CONNECTION_MSG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -67,12 +69,12 @@ public String toString() {
return "Async message: " + (isPositive() ? "positive" : "negative") + ", message = " + message; // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
positive = in.readBoolean();
message = in.readUTF();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeBoolean(positive);
out.writeUTF(message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -77,7 +79,7 @@ public String toString() {
return "CalibrationDataResponse, " + super.toString(); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
int len = in.readInt();
methodEntryExitCallTime = new double[len];
methodEntryExitInnerTime = new double[len];
Expand All @@ -100,7 +102,7 @@ void readObject(ObjectInputStream in) throws IOException {
timerCountsInSecond[1] = in.readLong();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
int len = methodEntryExitCallTime.length;
out.writeInt(len);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -82,7 +84,7 @@ public String toString() {
+ ((classFileBytes == null) ? "null" : ("" + classFileBytes.length)); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
className = in.readUTF();
thisAndParentLoaderData = new int[3];

Expand All @@ -102,7 +104,7 @@ void readObject(ObjectInputStream in) throws IOException {
threadInCallGraph = in.readBoolean();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeUTF(className);

for (int i = 0; i < 3; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -59,7 +61,7 @@ public String toString() {
return "CodeRegionCPUResultsResponse, length: " + results.length + ", " + super.toString(); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
int len = in.readInt();
results = new long[len];

Expand All @@ -68,7 +70,7 @@ void readObject(ObjectInputStream in) throws IOException {
}
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeInt(results.length);

for (int i = 0; i < results.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -213,9 +215,9 @@ void setType(int type) {
this.type = type;
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -63,11 +65,11 @@ public String toString() {
return "DefiningLoaderResponse, loaderId: " + loaderId + ", " + super.toString(); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
loaderId = in.readInt();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeInt(loaderId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -58,11 +60,11 @@ public String toString() {
return "DumpResultsResponse, timeStamp: " + dumpAbsTimeStamp + ", " + super.toString(); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
dumpAbsTimeStamp = in.readLong();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeLong(dumpAbsTimeStamp);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -85,7 +87,7 @@ public String getEventBufferFileName() {
return eventBufferFileName;
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
boolean hasBuffer;

bufSize = in.readInt();
Expand All @@ -112,7 +114,7 @@ void readObject(ObjectInputStream in) throws IOException {
}
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeInt(bufSize);
out.writeBoolean(buffer != null);
if (buffer != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -51,7 +53,7 @@ public String[] getClasses() {
return classes;
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
int nClasses = in.readInt();

if (nClasses == 0) {
Expand All @@ -67,7 +69,7 @@ void readObject(ObjectInputStream in) throws IOException {
}
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
if (classes == null) {
out.writeInt(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -52,7 +54,7 @@ public String toString() {
return "GetClassFileBytesResponse, classes: " + classBytes.length + ", " + super.toString(); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
int nClasses = in.readInt();

if (nClasses == 0) {
Expand All @@ -71,7 +73,7 @@ void readObject(ObjectInputStream in) throws IOException {
}
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeInt(classBytes.length);

for (int i = 0; i < classBytes.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -88,12 +90,12 @@ public String toString() {
+ ", classLoaderId: " + classLoaderId; // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
className = in.readUTF();
classLoaderId = in.readInt();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeUTF(className);
out.writeInt(classLoaderId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.netbeans.lib.profiler.wireprotocol;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -60,11 +62,11 @@ public String toString() {
return "GetClassIdResponse, classId: " + classId + ", " + super.toString(); // NOI18N
}

void readObject(ObjectInputStream in) throws IOException {
void readObject(DataInputStream in) throws IOException {
classId = in.readInt();
}

void writeObject(ObjectOutputStream out) throws IOException {
void writeObject(DataOutputStream out) throws IOException {
out.writeInt(classId);
}
}
Loading
Loading