aboutsummaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-08-25 11:59:29 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2022-08-25 11:59:29 +0200
commit895e5881213da925d71a6d0ad8feffc92acaa96e (patch)
tree73f2f4eed40c6c29e747272fc6bda2ae91c95191 /container-core
parentbf81a11f33d4c687e6446b67b1e26a67c1bd59b7 (diff)
Wire in query parameter profileDepth to control how deep down in the depency tree
profiling shall go.
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/processing/execution/Execution.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/container-core/src/main/java/com/yahoo/processing/execution/Execution.java b/container-core/src/main/java/com/yahoo/processing/execution/Execution.java
index 158ec726722..f6a1149f056 100644
--- a/container-core/src/main/java/com/yahoo/processing/execution/Execution.java
+++ b/container-core/src/main/java/com/yahoo/processing/execution/Execution.java
@@ -393,7 +393,7 @@ public class Execution {
/**
* The name of the property to find
*/
- private String name;
+ private final String name;
private Object foundValue = null;
public PropertyValueVisitor(String name) {
@@ -403,9 +403,8 @@ public class Execution {
@Override
public void visit(TraceNode node) {
if (node.payload() == null) return;
- if (!(node.payload() instanceof Pair)) return;
+ if (!(node.payload() instanceof Pair property)) return;
- Pair property = (Pair) node.payload();
if (!property.getFirst().equals(name)) return;
foundValue = property.getSecond();
}
@@ -465,7 +464,7 @@ public class Execution {
/**
* The smallest trace level at which this information will be traced
*/
- private int value;
+ private final int value;
Level(int value) {
this.value = value;