diff options
author | Richard Hughes <richard@hughsie.com> | 2007-01-18 23:14:48 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2007-01-18 23:14:48 +0000 |
commit | 5614e64de80a3bc9d178c9a0f627adc72e78e6fa (patch) | |
tree | d9f77e899baa4682e804b59e6aaff0d607676865 | |
parent | 96974f106451712f8cbd9f53a7427b02725ee5cd (diff) |
add some developer-only help scripts
Add ohmd/massif-ohm.sh, ohmd/run-ohm.sh and ohmd/valgrind-ohm.sh
-rwxr-xr-x | ohmd/massif-ohm.sh | 18 | ||||
-rwxr-xr-x | ohmd/run-ohm.sh | 3 | ||||
-rwxr-xr-x | ohmd/valgrind-ohm.sh | 4 |
3 files changed, 25 insertions, 0 deletions
diff --git a/ohmd/massif-ohm.sh b/ohmd/massif-ohm.sh new file mode 100755 index 0000000..903b2ac --- /dev/null +++ b/ohmd/massif-ohm.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +rm massif.* +killall ohmd + +valgrind --tool=massif --format=html --depth=10 \ + --alloc-fn=g_malloc --alloc-fn=g_realloc \ + --alloc-fn=g_try_malloc --alloc-fn=g_malloc0 --alloc-fn=g_mem_chunk_alloc \ + ./ohmd --no-daemon --timed-exit + +#massif uses the pid file, which is hard to process. +mv massif.*.html massif.html +mv massif.*.ps massif.ps +#convert to pdf, and make readable by normal users +ps2pdf massif.ps massif.pdf +rm massif.ps +rm massif.html +chmod a+r massif.* diff --git a/ohmd/run-ohm.sh b/ohmd/run-ohm.sh new file mode 100755 index 0000000..f548cea --- /dev/null +++ b/ohmd/run-ohm.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +./ohmd --no-daemon --verbose diff --git a/ohmd/valgrind-ohm.sh b/ohmd/valgrind-ohm.sh new file mode 100755 index 0000000..3137bf1 --- /dev/null +++ b/ohmd/valgrind-ohm.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +#valgrind --num-callers=20 --show-reachable=yes --leak-check=yes --tool=memcheck ./ohmd --no-daemon --timed-exit $@ +valgrind --show-reachable=yes --tool=memcheck --leak-check=full ./ohmd --no-daemon --timed-exit $@ |