* Allow getting current call depth * Add comment
@@ -20,6 +20,14 @@ public final class CallDepth {
return --this.depth;
}
+ /**
+ * Get current call depth. This method may be used by vendor distributions to extend existing
+ * instrumentations.
+ */
+ public int get() {
+ return depth;
+ }
+
void reset() {
depth = 0;