Added valgrindrc
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,4 +1,4 @@
|
|||||||
all:bash ghc git python vim zsh
|
all:bash ghc git python valgrind vim zsh
|
||||||
|
|
||||||
bash:
|
bash:
|
||||||
cp bash_profile ~/.bash_profile
|
cp bash_profile ~/.bash_profile
|
||||||
@@ -13,6 +13,9 @@ git:
|
|||||||
python:
|
python:
|
||||||
cp pythonrc ~/.pythonrc
|
cp pythonrc ~/.pythonrc
|
||||||
|
|
||||||
|
valgrind:
|
||||||
|
cp valgrindrc ~/.valgrindrc
|
||||||
|
|
||||||
vim:
|
vim:
|
||||||
cp vimrc ~/.vimrc
|
cp vimrc ~/.vimrc
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
The dotfiles I use. Includes configuration files for vim, bash, ghci, python,
|
The dotfiles I use. Includes configuration files for vim, bash, ghci, python, valgrind,
|
||||||
zsh and git; also a pip installation script.
|
zsh and git; also a pip installation script.
|
||||||
|
|
||||||
Some of the configurations are OS X-centric(some of it is also usable on Debian,
|
Some of the configurations are OS X-centric(some of it is also usable on Debian,
|
||||||
|
2
ghci
2
ghci
@@ -1,4 +1,4 @@
|
|||||||
:set prompt "ghci> "
|
:set prompt "λ: "
|
||||||
{- :set -Wall -}
|
{- :set -Wall -}
|
||||||
|
|
||||||
let ghciEscapeShellArg arg = "'" ++ concatMap (\c -> if c == '\'' then "'\"'\"'" else [c]) arg ++ "'"
|
let ghciEscapeShellArg arg = "'" ++ concatMap (\c -> if c == '\'' then "'\"'\"'" else [c]) arg ++ "'"
|
||||||
|
@@ -72,7 +72,7 @@
|
|||||||
default = simple
|
default = simple
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
name = Veit Heller
|
name = hellerve
|
||||||
email = veit.heller@student.htw-berlin.de
|
email = veit.heller@student.htw-berlin.de
|
||||||
[credential]
|
[credential]
|
||||||
helper = osxkeychain
|
helper = osxkeychain
|
||||||
|
20
valgrindrc
Normal file
20
valgrindrc
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
--memcheck:leak-check=yes
|
||||||
|
--memcheck:show-reachable=yes
|
||||||
|
--memcheck:dsymutil=yes
|
||||||
|
--memcheck:track-fds=yes
|
||||||
|
--memcheck:track-origins=yes
|
||||||
|
--memcheck:gen-suppressions=all
|
||||||
|
|
||||||
|
--massif:time-unit=B
|
||||||
|
--massif:max-snapshots=128
|
||||||
|
--massif:stacks=yes
|
||||||
|
--massif:peak-inaccuracy=0.5
|
||||||
|
|
||||||
|
--callgrind:dump-instr=yes
|
||||||
|
--callgrind:compress-strings=no
|
||||||
|
--callgrind:compress-pos=no
|
||||||
|
|
||||||
|
--cachegrind:I1=32768,8,64
|
||||||
|
--cachegrind:D1=32768,8,64
|
||||||
|
--cachegrind:L2=2097152,8,64
|
||||||
|
--cachegrind:branch-sim=yes
|
7
zshrc
7
zshrc
@@ -28,6 +28,7 @@ alias g++="g++-4.9"
|
|||||||
alias pupgrade="sudo python ~/.pip-upgrade 2"
|
alias pupgrade="sudo python ~/.pip-upgrade 2"
|
||||||
alias pupgrade3="sudo python3.4 ~/.pip-upgrade 3"
|
alias pupgrade3="sudo python3.4 ~/.pip-upgrade 3"
|
||||||
alias cupgrade="cabal update; cabal list --simple-output --installed | awk '{print $1}' | uniq | xargs -I {} cabal install {} --reinstall"
|
alias cupgrade="cabal update; cabal list --simple-output --installed | awk '{print $1}' | uniq | xargs -I {} cabal install {} --reinstall"
|
||||||
|
alias ghci="ghci -v0"
|
||||||
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
|
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
|
||||||
alias qmake="/usr/local/Cellar/qt5/5.3.2/bin/qmake"
|
alias qmake="/usr/local/Cellar/qt5/5.3.2/bin/qmake"
|
||||||
alias lupdate="/usr/local/Cellar/qt5/5.3.2/bin/lupdate"
|
alias lupdate="/usr/local/Cellar/qt5/5.3.2/bin/lupdate"
|
||||||
@@ -43,7 +44,6 @@ alias cdz="cd ~/Documents/Code/Github/zepto"
|
|||||||
alias cdg="cd ~/Documents/Code/Github"
|
alias cdg="cd ~/Documents/Code/Github"
|
||||||
alias cdd="cd ~/Documents/Code/Github/decode"
|
alias cdd="cd ~/Documents/Code/Github/decode"
|
||||||
alias cdot="cd ~/Documents/Code/Github/.dotfiles"
|
alias cdot="cd ~/Documents/Code/Github/.dotfiles"
|
||||||
alias cdf="cd ~/Documents/Code/FKI"
|
|
||||||
alias cdh="cd ~/Documents/Code/Github/hiss"
|
alias cdh="cd ~/Documents/Code/Github/hiss"
|
||||||
alias cdw="cd ~/Documents/Code/Work"
|
alias cdw="cd ~/Documents/Code/Work"
|
||||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||||
@@ -136,6 +136,7 @@ save_dotfiles(){
|
|||||||
cp ~/.gitignore ${DOTPATH}gitignore
|
cp ~/.gitignore ${DOTPATH}gitignore
|
||||||
cp ~/.gitconfig ${DOTPATH}gitconfig
|
cp ~/.gitconfig ${DOTPATH}gitconfig
|
||||||
cp ~/.pythonrc ${DOTPATH}pythonrc
|
cp ~/.pythonrc ${DOTPATH}pythonrc
|
||||||
|
cp ~/.valgrindrc ${DOTPATH}valgrindrc
|
||||||
cp ~/.vimrc ${DOTPATH}vimrc
|
cp ~/.vimrc ${DOTPATH}vimrc
|
||||||
cp ~/.zshrc ${DOTPATH}zshrc
|
cp ~/.zshrc ${DOTPATH}zshrc
|
||||||
cp ~/.pip-upgrade ${DOTPATH}pip-upgrade
|
cp ~/.pip-upgrade ${DOTPATH}pip-upgrade
|
||||||
@@ -147,6 +148,10 @@ makepass(){
|
|||||||
echo ''
|
echo ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
massif(){
|
||||||
|
valgrind --tool=massif --massif-out-file=massif.prof $1 && ms_print massif.prof | less
|
||||||
|
}
|
||||||
|
|
||||||
upgrade () {
|
upgrade () {
|
||||||
if [ ! $1 ] ; then
|
if [ ! $1 ] ; then
|
||||||
if [ `uname` = "Darwin" ]; then
|
if [ `uname` = "Darwin" ]; then
|
||||||
|
Reference in New Issue
Block a user