ICorProfilerInfo4::GetObjectSize2 Method
Returns the size of a specified object. Replaces the ICorProfilerInfo::GetObjectSize method by reporting sizes of objects that are larger than what can be expressed in a ULONG
.
Syntax
HRESULT GetObjectSize2(
[in] ObjectID objectId,
[out] SIZE_T *pcSize);
Parameters
objectId
[in] The ID of the object.
pcSize
[out] A pointer to the object's size, in bytes.
Remarks
Different objects of the same types often have the same size. However, some types, such as arrays or strings, may have a different size for each object.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.5
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.