This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
private final DataRow dataRow;
private final List<CharSequence> callStack;
private final long contextID;
public DTraceEventData(final DataRow dataRow) {
this(dataRow, null);
this(dataRow, null, -1);
}
public DTraceEventData(final DataRow dataRow, final List<CharSequence> callStack) {
public DTraceEventData(final DataRow dataRow, final List<CharSequence> callStack, long contextID) {
assert dataRow != null;
this.dataRow = dataRow;
this.callStack = callStack;
this.contextID = contextID;
public List<CharSequence> getEventCallStack() {
return callStack == null ? null : Collections.unmodifiableList(callStack);
public long getContextID() {
return contextID;
public DataRow getDataRow() {
return dataRow;
if (currData != null) {
if (currStack != null && currStack.size() > 0) {
result = new DTraceEventData(new DataRow(colNames, currData), currStack);
result = new DTraceEventData(new DataRow(colNames, currData), currStack, -1);
currStack = null;
} else {
// Empty line after data.. just return data
if (timestampColumnIdx == -1 || durationColumnIdx == -1) {
//TODO: define context
stackID = stackStorage.putStack(-1, callStack);
stackID = stackStorage.putStack(data.getContextID(), callStack);
long time = DataUtil.toLong(dataRow.getData().get(timestampColumnIdx));
long duration = DataUtil.toLong(dataRow.getData().get(durationColumnIdx));
stackID = stackStorage.putSample(-1, callStack, time, duration);
stackID = stackStorage.putSample(data.getContextID(), callStack, time, duration);
if (stackRefColumnIdx >= 0) {