Interface Tree
- All Superinterfaces:
Comparable<ProfilingValue>,Iterable<Tree>,ProfilingValue
Describes a call tree. This structure is used for CPU trees as well as allocation trees.
Each tree exposes the following data:
- a subtree for possible child nodes.
Treeimplementsjava.lang.Iterable, so you can use the enhanced for loop to iterate over children. - associated profiling information provided by the
ProfilingValuesuper class - associated payload information. Payload is added to the call tree by built-in or custom probes.
-
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns an iterator for all child nodes.intReturns the number of child nodes.intReturns the number of payloads attached to this call stack.Returns an iterator for all payloads attached to this call stack.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.jprofiler.api.platform.structures.ProfilingValue
getCount, getDescriptor, getLineNumber, getValue
-
Method Details
-
getChildCount
int getChildCount()Returns the number of child nodes.- Returns:
- the child count
-
children
Returns an iterator for all child nodes. You can also use the enhanced for loop to iterate over children.- Returns:
- the iterator
-
getPayloadIterator
Returns an iterator for all payloads attached to this call stack.- Returns:
- the iterator
- See Also:
-
getPayloadCount
int getPayloadCount()Returns the number of payloads attached to this call stack.- Returns:
- the payload count
-