Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -497,20 +497,20 @@ public void decorate(final EventSnapshot eventSnapshot, final FrameProcessor fra
if (this.throwable != null) {
final List<VariableID> variableIds = frameProcessor.processVars(Collections.singletonMap("thrown", this.throwable));
final Map<String, Variable> watchLookup = frameProcessor.closeLookup();
eventSnapshot.addWatchResult(new WatchResult("thrown", variableIds.get(0), WatchResult.WATCH));
eventSnapshot.addWatchResult(new WatchResult("thrown", variableIds.get(0), WatchResult.CAPTURE));
eventSnapshot.mergeVariables(watchLookup);
}

if (this.isSet) {
final List<VariableID> variableIds = frameProcessor.processVars(Collections.singletonMap("return", this.value));
final Map<String, Variable> watchLookup = frameProcessor.closeLookup();
eventSnapshot.addWatchResult(new WatchResult("return", variableIds.get(0), WatchResult.WATCH));
eventSnapshot.addWatchResult(new WatchResult("return", variableIds.get(0), WatchResult.CAPTURE));
eventSnapshot.mergeVariables(watchLookup);
}

final List<VariableID> variableIds = frameProcessor.processVars(Collections.singletonMap("runtime", durationNs));
final Map<String, Variable> watchLookup = frameProcessor.closeLookup();
eventSnapshot.addWatchResult(new WatchResult("runtime", variableIds.get(0), WatchResult.WATCH));
eventSnapshot.addWatchResult(new WatchResult("runtime", variableIds.get(0), WatchResult.CAPTURE));
eventSnapshot.mergeVariables(watchLookup);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ public class WatchResult {
*/
public static final String LOG = "LOG";

/**
* Watch source is CAPTURE.
*
* @see com.intergral.deep.proto.tracepoint.v1.WatchSource
*/
public static final String CAPTURE = "CAPTURE";

private final String error;
private final VariableID result;
private final String expression;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</modules>

<properties>
<deep-proto.version>1.0.3</deep-proto.version>
<deep-proto.version>1.0.5</deep-proto.version>
<grpc.version>1.60.1</grpc.version>
<netty.version>4.1.100.Final</netty.version>
<tcnative.version>2.0.62.Final</tcnative.version>
Expand Down