add dev profiling

This commit is contained in:
zawz 2020-11-13 15:22:46 +01:00
parent d33ff9e13b
commit efd9e95b26
2 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View file

@ -4,3 +4,6 @@
/Zmakefile
/TODO
/lxsh
/gmon.out
/profiling/*
/profiling.*

View file

@ -18,7 +18,7 @@ CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c++17
ifeq ($(DEBUG),true)
# debugging flags
CC=clang++
CXXFLAGS += -g
CXXFLAGS += -g -pg
else
# release flags
CXXFLAGS += -O2
@ -34,7 +34,6 @@ endif
## END CONFIG ##
$(shell mkdir -p $(ODIR))
$(shell mkdir -p $(BINDIR))