简体   繁体   中英

How can I get a snapshot of my memory

Is there a way to know what objects eat my memory?

For example, for a given point in my code, I'd like to know how many strings are alive and how much memory they use.

Is there a tool or API for this?

Sure, good'ol windbg does that.

The CLR profiler does exactly this. It's a great tool.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM