Package org.red5.server.net.rtmp.event
Class AllocationDebugger
java.lang.Object
org.red5.server.net.rtmp.event.AllocationDebugger
Simple allocation debugger for Event reference counting.
- Author:
- The Red5 Project, Steven Gong (steven.gong@gmail.com) on behalf of (ce@publishing-etc.de), Paul Gregoire (mondain@gmail.com)
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Information on references count -
Field Summary
Modifier and TypeFieldDescriptionEvents-to-information objects mapprivate static AllocationDebugger
Allocation debugger istanceprivate org.slf4j.Logger
Logger -
Constructor Summary
ModifierConstructorDescriptionprivate
Do not instantiate AllocationDebugger. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add event to mapvoid
dump()
Dumps allocationsstatic AllocationDebugger
Getter for instanceprotected void
Release event if there's no more references to itprotected void
Retain event
-
Field Details
-
instance
Allocation debugger istance -
log
private org.slf4j.Logger logLogger -
events
Events-to-information objects map
-
-
Constructor Details
-
AllocationDebugger
private AllocationDebugger()Do not instantiate AllocationDebugger.
-
-
Method Details
-
getInstance
Getter for instance- Returns:
- Allocation debugger instance
-
create
Add event to map- Parameters:
event
- Event
-
retain
Retain event- Parameters:
event
- Event
-
release
Release event if there's no more references to it- Parameters:
event
- Event
-
dump
public void dump()Dumps allocations
-