English 中文(简体)
有效获取 Dumpheap - stat 中未列出的数值类型名称/ MT 的有效方式
原标题:Efficient way to get name/MT of ValueTypes not listed in !dumpheap -stat

I m working my way around the SOS commands and their output, but I noticed there doesn t seem to be a way to get really all types that are currently in use somehow. The best way so far is !dumpheap -stat, but it only lists types for which there are instances. However, when a ValueType is never boxed, that type will not show up on !dumpheap -stat. (Which isn t surprising, as they aren t allocated on the heap.)

So my question is: Are there any efficient ways to figure out which additional ValueTypes currently exist? I mean, I could load them on-demand when inspecting individual heap objects (something like !dumpvc <mt> <address> based on !do <address> output), but for displayed statistics it would be nice to find the types through some simpler means than looking at (instances/class definitions of) all known classes to figure out whether they use any additional ValueTypes.

最佳回答

似乎没有任何有效的方法可以做到这一点。 换句话说, 我最后检查了每个类型 < code>! Dumpheap -stat 返回的, 以确定它是否是一个支架阵列或包含支架字段。 在这两种情况下, 我都需要反复检查新发现的支架类型是否也包含任何支架字段。 在这种情况下, 需要重现 。 除非我见过支架类型 。

! DummpModule -mt 不是一个选项, btw。 例如, 我看到了 < code> System. collections. Generic. List'1 , 但是没有代表列表类。

问题回答

暂无回答




相关问题
Process memory increases much faster with gflags +ust

I ve got stuck in a problem with gflags when trying to find some memory leaks in a windows app. When I turn on the ust flag (in order to collect memory allocations stack traces) the memory of my ...

how to use windbg find out SqlConnection.ConnectionString?

I can use "!do" to dump the SqlConnection instance but not sure how to find out its ConnectionString: 0:018> !do 2fa7730 Name: System.Data.SqlClient.SqlConnection MethodTable: 000007fef4455968 ...

WinDbg .for loop

I am having trouble getting the WinDbg .for command to work. I would like to dump an array of c++ structs. ?? gpTranData->mpApplCodes[0] works for a single entry but I would like to loop through ...

What does "Eclipsed" mean in WinDbg?

In the "Locals" window of WinDbg there are several names with the value <Eclipsed>. In some cases the same name exists multiple times which one real value and the others are shown as <...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

热门标签