Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 .NET 中以编程方式获取 GC 跟踪分配对象的总数?
您可以通过附加内存分析器来做到这一点。但是我似乎在运行时找不到这个数字。可能吗?最好是每一代。