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)
commit200846a8e35990f018ef1c81c62b16c3e303cea4
treeee5cda0e8680d6bdd0b9d9c06de076336f21547a
parented7046a2455d98df414cad4e6bb51500d536e156
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.

Commit migrated from https://github.com/dotnet/coreclr/commit/25878db0c11bfb8d52088c75ccfcc13e4c8383f2
src/coreclr/src/ToolBox/SOS/Strike/strike.cpp
src/coreclr/src/ToolBox/SOS/Strike/util.cpp
src/coreclr/src/ToolBox/SOS/Strike/util.h