Is there a way to get object references count via Memory profiler API? Romankalachik Created September 25, 2018 08:03 I have an objects pool factory class and want to create an Assert() which ensures that it is safe to add an object to a free objects pool.
No, there is no way. Taking and analyzing memory snapshot takes to much time to use such logic in production code.
You can use dotMemory Unit which allow analyzing memory state at execution point: https://www.jetbrains.com/dotmemory/unit/