Interface ObjectAllocationEvent
- All Known Implementing Classes:
ObjectAllocationEventImpl
public interface ObjectAllocationEvent
This class is used to store a single object allocation event. An event
consists of the name of the object, its call stack, a time, and the size of
the allocation.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the size of this allocation, in bytes.Returns a comma separated call stack for the object allocation event.longReturns the time, in milliseconds since epoch, when this allocation occurred.Returns the object name for this allocation event.Returns the request site for this allocation event.
-
Method Details
-
getCallStack
String getCallStack()Returns a comma separated call stack for the object allocation event.- Returns:
- a String of comma separated methods.
-
getObjectName
String getObjectName()Returns the object name for this allocation event.- Returns:
- the object name.
-
getRequestSite
String getRequestSite()Returns the request site for this allocation event.- Returns:
- the object name.
-
getEventTime
long getEventTime()Returns the time, in milliseconds since epoch, when this allocation occurred.- Returns:
- the time of the allocation.
-
getAllocationSize
long getAllocationSize()Returns the size of this allocation, in bytes.- Returns:
- the size in bytes.
-