Skip to content

Commit 9f977b7

Browse files
committed
Add profiler node to sys node
1 parent 1f92032 commit 9f977b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dslink-core/src/main/java/org/iot/dsa/dslink/DSSysNode.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.iot.dsa.node.action.ActionInvocation;
88
import org.iot.dsa.node.action.ActionResult;
99
import org.iot.dsa.node.action.DSAction;
10+
import org.iot.dsa.profiler.ProfilerNode;
1011
import org.iot.dsa.util.DSException;
1112

1213
/**
@@ -19,6 +20,7 @@ public class DSSysNode extends DSNode {
1920
static final String CONNECTION = "connection";
2021
static final String SAVE = "save";
2122
static final String STOP = "stop";
23+
static final String PROFILER = "profiler";
2224

2325
private DSInfo connection = getInfo(CONNECTION);
2426
private DSInfo save = getInfo(SAVE);
@@ -29,6 +31,7 @@ protected void declareDefaults() {
2931
declareDefault(CONNECTION, new DSNode()).setTransient(true);
3032
declareDefault(SAVE, DSAction.DEFAULT);
3133
declareDefault(STOP, DSAction.DEFAULT);
34+
declareDefault(PROFILER, new ProfilerNode()).setTransient(true);
3235
}
3336

3437
public DSLinkConnection getConnection() {

0 commit comments

Comments
 (0)