Interface MemoryTree
-
public interface MemoryTree
A tree shaped description of an object that has resources residing in memory.
-
-
Field Summary
Fields Modifier and Type Field Description static MemoryTree
NULL_TREE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Collection<MemoryTree>
components()
java.lang.String
description()
static MemoryTree
empty()
MemoryRange
memoryUsage()
default java.lang.String
render()
Renders the memory requirements into a human readable representation.static void
render(java.lang.StringBuilder sb, MemoryTree estimation, int depth)
default java.util.Map<java.lang.String,java.lang.Object>
renderMap()
default java.util.Optional<MemoryTree>
residentMemory()
-
-
-
Field Detail
-
NULL_TREE
static final MemoryTree NULL_TREE
-
-
Method Detail
-
description
java.lang.String description()
- Returns:
- a textual description for this component.
-
memoryUsage
MemoryRange memoryUsage()
- Returns:
- The resident memory of this component.
-
components
default java.util.Collection<MemoryTree> components()
- Returns:
- nested resources of this component.
-
residentMemory
default java.util.Optional<MemoryTree> residentMemory()
-
renderMap
default java.util.Map<java.lang.String,java.lang.Object> renderMap()
-
render
default java.lang.String render()
Renders the memory requirements into a human readable representation.
-
render
static void render(java.lang.StringBuilder sb, MemoryTree estimation, int depth)
-
empty
static MemoryTree empty()
-
-