windbg 学习笔记

 

 

!dumpheap -min 0x20000
         Address               MT           Size
    01cbf7800048     7ff988f42e90        131,096 
    01cbf7820080     7ff988f42e90        131,096 


//内存占用情况
!dumpheap -stat
输出如下:
7ff99dfa50d0 50,173 2,408,304 System.Collections.Generic.SortedSet<Microsoft.EntityFrameworkCore.Metadata.Internal.ForeignKey>+Enumerator
7ff99cddec08 44,328 2,666,692 System.String

!dumpheap -mt 7ff99cddec08
查找所有 System.String 对象

!gcroot
!dumpheap -mt 7ff99cddec08
//筛选
!dumpheap -min 1000 -type System.String

 

posted @ 2024-02-06 14:27  超难微猫  阅读(4)  评论(0编辑  收藏  举报