Last active
January 9, 2019 19:16
-
-
Save lontivero/504b28501d6ad479f6fbd32cbcf643fa to your computer and use it in GitHub Desktop.
Dumps a .NET memory heap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo lldb-4.0 -o "process attach -p $1" \ | |
-o "plugin load /usr/share/dotnet/shared/Microsoft.NETCore.App/2.2.0/libsosplugin.so" \ | |
-o "sos DumpHeap -stat" \ | |
-o "exit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment