Skip to content

Instantly share code, notes, and snippets.

@archongum
Last active September 26, 2019 03:38
Show Gist options
  • Save archongum/1e0aa64767cc524893552eb95dbf9e64 to your computer and use it in GitHub Desktop.
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.
#!/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