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 ([email protected]) on behalf of ([email protected]), Paul Gregoire ([email protected])
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classInformation on references count -
Field Summary
FieldsModifier and TypeFieldDescriptionEvents-to-information objects mapprivate static AllocationDebuggerAllocation debugger istanceprivate org.slf4j.LoggerLogger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDo not instantiate AllocationDebugger. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd event to mapvoiddump()Dumps allocationsstatic AllocationDebuggerGetter for instanceprotected voidRelease event if there's no more references to itprotected voidRetain 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
-