Improve performance of !dumpasync SOS command
authorStephen Toub <stoub@microsoft.com>
Sat, 25 May 2019 02:06:37 +0000 (22:06 -0400)
committerStephen Toub <stoub@microsoft.com>
Tue, 28 May 2019 10:05:33 +0000 (06:05 -0400)
commit25878db0c11bfb8d52088c75ccfcc13e4c8383f2
treea735a52f25d8fe5cfdc7db2164416f28aa89ea0c
parent66134f6e3646f22ac551fb5d720033d26d4cbf8d
Improve performance of !dumpasync SOS command

A significant majority of the time spent in dumpasync was in getting the type name of each object in order to compare it to "AsyncStateMachineBox".  This switches to comparing by module and mdTypeDef.  On an ~1GB dump, the time to execute !dumpasync dropped from 43 to 11 seconds on my machine.
src/ToolBox/SOS/Strike/strike.cpp
src/ToolBox/SOS/Strike/util.cpp
src/ToolBox/SOS/Strike/util.h