summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2019-06-10 19:27:05 +0300
committerXisco Faulí <xiscofauli@libreoffice.org>2019-07-13 16:17:16 +0200
commit35463d886e15d13a81bce36610140e40ae742416 (patch)
treea1638abf13b92950872f8a8b7a05e9866baa704f /desktop
parent90882591134ee39eed5588ee29f3633ec9b16eea (diff)
Add more useful exports to soffice's callgrind mode
Moved from TDF wiki to avoid duplication. These three stop us getting poor performance from unusual allocators: unset MALLOC_CHECK_ MALLOC_PERTURB_ G_SLICE If we wedge, at least we don't do it while grabbing the mouse: export SAL_DISABLE_FLOATGRAB=1 Turns off recovery dialog, which can be a pain: export OOO_DISABLE_RECOVERY=1 Turns off GL watchdog. It normally kills the application, if it seems to hang in a GL block: export SAL_DISABLE_GL_WATCHDOG=1 Change-Id: I4ec30d363280b727cd305a6a81ccb85849697159 Reviewed-on: https://gerrit.libreoffice.org/73773 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'desktop')
-rwxr-xr-xdesktop/scripts/soffice.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
index 579915d1d6b3..026f7f022c78 100755
--- a/desktop/scripts/soffice.sh
+++ b/desktop/scripts/soffice.sh
@@ -127,6 +127,10 @@ for arg in "$@" $EXTRAOPT ; do
export GLIBCXX_FORCE_NEW=1
;;
callgrind)
+ unset MALLOC_CHECK_ MALLOC_PERTURB_ G_SLICE
+ export SAL_DISABLE_FLOATGRAB=1
+ export OOO_DISABLE_RECOVERY=1
+ export SAL_DISABLE_GL_WATCHDOG=1
export LD_BIND_NOW=1
;;
esac