-
- All Superinterfaces:
Iterable<LeakInfo.TracePoint>
@UnstableApi public interface LeakInfo extends Iterable<LeakInfo.TracePoint>
Information about a resource leak that happened. This information is provided to callbacks of theMemoryManager.onLeakDetected(Consumer)
method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
LeakInfo.TracePoint
A moment in the life of the leaked object, for which some information was recorded.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
objectDescription()
A human-readable description of the object that leaked.Stream<LeakInfo.TracePoint>
stream()
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
stream
Stream<LeakInfo.TracePoint> stream()
Create aStream
of all theLeakInfo.TracePoint
s in thisLeakInfo
. The returnedStream
does not need to be closed.- Returns:
- A
Stream
ofLeakInfo.TracePoint
s, covering the life-cycle of the leaked resource.
-
objectDescription
String objectDescription()
A human-readable description of the object that leaked.- Returns:
- A description of the leaked object.
-
-