Notifies the profiler that memory within the heap has been allocated for an object.
HRESULT ObjectAllocated( [in] ObjectID objectId, [in] ClassID classId);
[in] The ID of the object for which memory was allocated.
[in] The ID of the class of which the object is an instance.
ObjectedAllocated method is not called for allocations from either the stack or unmanaged memory. The
classId parameter can refer to a class in managed code that has not been loaded yet. The profiler will receive a class load callback for that class immediately after the
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: Available since 2.0