The IObjectAllocationCallback interface is used by the Microsoft VM to notify a profiler or heap monitoring application when individual objects are created (allocated). This object is one of two callbacks through which the Microsoft VM communicates with the profiler or heap monitor regarding heap information.
A profiler or heap monitoring application must register this interface with the Microsoft VM by calling NotifyOnObjectAllocations.
The profiler or event monitoring application implements IObjectAllocationCallback object. The IObjectAllocationCallback object has several a single method that receives information from the Microsoft VM when an individual object is created (allocated on the heap) in an executing Java process.
The single method implemented on this interface returns S_OK on success, or E_FAIL on failure.
// Methods OnObjectAllocated