How to understand the -min/-max options of !dumpheap in WinDBG SOS

元气小坏坏 提交于 2019-12-01 09:06:14

问题


The documentation said it's used for limit the size of the output object, but based on my test, it's not what I expected:

0:000> !dumpheap -mt 000007fee12406a8 -max 400 -min 399
Address               MT     Size
000000000d1dc1f8 000007fee12406a8      936     
000000000d62bed8 000007fee12406a8     1016     
000000000d630d00 000007fee12406a8      984     
000000000d633aa8 000007fee12406a8      984     
000000000d65f368 000007fee12406a8      952     
000000000d685ff0 000007fee12406a8      952     
000000000d6b2150 000007fee12406a8      952    

So how to understand the -min and -max options?


回答1:


WinDbg's default number format is hexadecimal. 0x400 is 1024 and 0x399 is 921, that explains the output. If you want decimal numbers, use the 0n prefix, e.g. 0n400 and 0n399.



来源:https://stackoverflow.com/questions/33249823/how-to-understand-the-min-max-options-of-dumpheap-in-windbg-sos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!