|
|
@ -66,7 +66,10 @@ $(PROJECT)-debug: $(OBJ)
|
|
|
|
pgo-generate: $(PGO_OBJ)
|
|
|
|
pgo-generate: $(PGO_OBJ)
|
|
|
|
$(CXX) $^ $(CXXFLAGS) $(PROF_FLAGS) -o $@ $(LDFLAGS) $(PROF_FLAGS)
|
|
|
|
$(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 \
|
|
|
|
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; \
|
|
|
|
dd if=/dev/urandom of=/tmp/$(PROJECT)-pgo-test bs=1024 count=$(PGO_DATASET_SIZE) >> /dev/null 2>&1; \
|
|
|
|
printf "\rIteration $$i / $(PGO_ITERATIONS)"; \
|
|
|
|
printf "\rIteration $$i / $(PGO_ITERATIONS)"; \
|
|
|
|