Skip to content

Instantly share code, notes, and snippets.

@lontivero
Last active January 9, 2019 19:16
Show Gist options
  • Save lontivero/504b28501d6ad479f6fbd32cbcf643fa to your computer and use it in GitHub Desktop.
Save lontivero/504b28501d6ad479f6fbd32cbcf643fa to your computer and use it in GitHub Desktop.
Dumps a .NET memory heap
#!/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