Determine how much memory a class uses?

后端 未结 3 501
醉梦人生
醉梦人生 2021-01-17 21:42

I am trying to find a way to determine at run-time how much memory a given class is using in .NET. Using Marshal.SizeOf() is out, as it only works on value typ

3条回答
提交回复
热议问题