Is there a way to get object references count via Memory profiler API?

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. 

0
1 comment

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/

0

Please sign in to leave a comment.