From 464f579f48a367926b872ed500aeaa8bd2e8eee2 Mon Sep 17 00:00:00 2001
From: Andreas Schenk <andreas_schenk@hms.harvard.edu>
Date: Mon, 1 Dec 2014 18:18:53 -0500
Subject: [PATCH] added valgrind massif profiling option to ost_config

---
 scripts/ost_config.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scripts/ost_config.in b/scripts/ost_config.in
index f109f8b2d..afce131f1 100644
--- a/scripts/ost_config.in
+++ b/scripts/ost_config.in
@@ -53,6 +53,14 @@ if [ -n "$DNG_ATTACH_VALGRIND" ]; then
   pyexec="`which valgrind`#--leak-check=full#$pyexec"
 fi
 
+if [ -n "$DNG_ATTACH_VALGRIND_MASSIF" ]; then
+  if [ ! -x `which valgrind` ]; then
+    echo "Error: valgrind not found!"
+    exit
+  fi
+  pyexec="`which valgrind`#--tool=massif#$pyexec"
+fi
+
 if [ -n "$DNG_PROFILE" ]; then
   if [[ "$DNG_PROFILE" == "yep" ]]; then
     echo "Profiling activated using yep"
-- 
GitLab