advertise heaptrack_gui
authorMilian Wolff <mail@milianw.de>
Mon, 15 Jun 2015 23:40:22 +0000 (01:40 +0200)
committerMilian Wolff <mail@milianw.de>
Mon, 15 Jun 2015 23:40:22 +0000 (01:40 +0200)
heaptrack.sh.cmake

index 108a33d..e1af654 100755 (executable)
@@ -32,7 +32,7 @@ usage() {
     echo "  * Where is heap memory being allocated, and how often?"
     echo "  * How much space are heap individual allocations requesting?"
     echo
-    echo "To evaluate the generated heaptrack data, use heaptrack_print."
+    echo "To evaluate the generated heaptrack data, use heaptrack_print or heaptrack_gui."
     echo
     echo "Mandatory arguments to heaptrack:"
     echo "  DEBUGGEE       The name or path to the application that should"
@@ -155,7 +155,11 @@ function cleanup {
 
     echo "Heaptrack finished! Now run the following to investigate the data:"
     echo
-    echo "  heaptrack_print \"$output\" | less"
+    if [[ "$(which heaptrack_gui)" != "" ]]; then
+        echo "  heaptrack_gui \"$output\""
+    else
+        echo "  heaptrack_print \"$output\" | less"
+    fi
 }
 trap cleanup EXIT