Profiling( https://blog.golang.org/profiling-go-programs )
sudo apt install graphviz gv
go test -run=Bench -bench=. -benchmem -memprofile=mem.out -cpuprofile=cpu.out
go tool pprof mem.out
go tool pprof cpu.out
go tool pprof -http :9999 -edgefraction 0 -nodefraction 0 -nodecount 100000 cpu.out
go tool pprof -http :9999 -edgefraction 0 -nodefraction 0 -nodecount 100000 mem.out
web
- run in browser
top5 -cum
- run top of runtime
go test -coverprofile=coverage.out
go tool cover -html=coverage.out
go tool cover -html=coverage.out -o=coverage.html
firefox coverage.html &
go test -coverprofile=coverage.out ./...
git remote set-url origin git@github.com:Konstantin8105/dotfiles.git
:go build -gcflags="-e"
git difftool --tool=meld
Applications:
sudo apt install git vim-gtk octave scilab meld ctags gnuplot clang gparted cvs sqlite3 inkscape htop mysql-server mercurial
sudo snap install go --classic
Fonts:
mkdir ~/.fonts
cp ~/dotfiles/FiraFont/ttf/*.ttf ~/.fonts
cp ~/dotfiles/GolangFont/*.ttf ~/.fonts
cp ~/dotfiles/ptmono/*.ttf ~/.fonts
cp ~/dotfiles/Proggy/*.ttf ~/.fonts
cp ~/dotfiles/Terminus/*.ttf ~/.fonts
cp ~/dotfiles/CascadiaCode/*.ttf ~/.fonts
Vim:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
GRUB FOR HP Z800:
acpi=off
update-grub