Last active
September 26, 2019 03:38
-
-
Save archongum/1e0aa64767cc524893552eb95dbf9e64 to your computer and use it in GitHub Desktop.
Creates reports(Leak_Suspects, System_Overview, Top_Components) for mat(Memory Analyzer Tools), places in mat root directory.
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/sh | |
# | |
# Bases on 'ParseHeapDump.sh' | |
# | |
SCRIPT_NAME=`basename "$0"` | |
if [ "$#" != "1" ]; then | |
echo "Usage: ${SCRIPT_NAME} *.hprof" | |
exit 1 | |
fi | |
"$(dirname -- "$0")"/MemoryAnalyzer -consolelog -application org.eclipse.mat.api.parse "$1" org.eclipse.mat.api:suspects org.eclipse.mat.api:overview org.eclipse.mat.api:top_components |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment