diff --git a/Makefile b/Makefile index a8cd16f..6d3ad64 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,10 @@ $(PROJECT)-debug: $(OBJ) pgo-generate: $(PGO_OBJ) $(CXX) $^ $(CXXFLAGS) $(PROF_FLAGS) -o $@ $(LDFLAGS) $(PROF_FLAGS) -pgo-profile: pgo-generate +pgo-reset: + find ./profile -name \*.gcda -exec rm {} + + +pgo-profile: | pgo-reset pgo-generate for i in {1..$(PGO_ITERATIONS)}; do \ dd if=/dev/urandom of=/tmp/$(PROJECT)-pgo-test bs=1024 count=$(PGO_DATASET_SIZE) >> /dev/null 2>&1; \ printf "\rIteration $$i / $(PGO_ITERATIONS)"; \