LeakDiag is like UMDH in that it takes snapshots of a running program and differences them to show you potential leaks. Whereas UMDH only looks at the user-mode heap, LeakDiag looks at the user-mode heap and so much more. LeakDiag can analyze 6 different areas:
- Virtual memory (VirtualAlloc, VirtualFree, etc.).
- Heap memory (the same as UMDH).
- MPHeap memory (the multi-processor heap).
- COM memory.
- COM private memory.
- C runtime memory.
You might be asking yourself, if LeakDiag does more than UMDH, why would you ever use UMDH? As I said earlier, most memory leaks occur in the user-mode heap, and UMDH is specifically designed for the user-mode heap so it does a better job at finding and displaying those leaks. So I would recommend using UMDH first, but LeakDiag is a powerful tool to be aware of in case you need it.
No comments:
Post a Comment