mirror of
https://github.com/glest/glest-source.git
synced 2025-02-23 19:22:40 +01:00
* build.zg.sh scripts deprected * update for BSD * removed checking for VLC (not implemented) * docs updated * Install.md created. * scripts moved to scripts/ directory
19 lines
570 B
Bash
Executable File
19 lines
570 B
Bash
Executable File
#! /bin/sh
|
|
# Use this script to track memory use and errors while running MegaGlest
|
|
# ----------------------------------------------------------------------------
|
|
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
|
|
|
|
exec 3>&1
|
|
export GLIBCPP_FORCE_NEW=1
|
|
export GLIBCXX_FORCE_NEW=1
|
|
export G_SLICE=always-malloc
|
|
|
|
exec valgrind --num-callers=20 \
|
|
--leak-check=yes \
|
|
--leak-resolution=high \
|
|
--show-reachable=yes \
|
|
"$@" 2>&1 1>&3 3>&- |
|
|
sed 's/^==[0-9]*==/==/' >&2 1>&2 3>&-
|
|
|