From 1a4f540e183c89894f6fde58be55cf7d23ae3ff6 Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Tue, 26 Jun 2018 23:50:11 -0400 Subject: [PATCH] Stub PGO code in Incremental progress on #23 - should probably add a dedicated flag that creates the instrumented binary, runs a test suite, then creates the optimized binary. --- build/Makefile.linux | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/build/Makefile.linux b/build/Makefile.linux index ac2ed04..1aef604 100644 --- a/build/Makefile.linux +++ b/build/Makefile.linux @@ -48,20 +48,24 @@ LDFLAGS = -O3 \ OBJ = parquet.o parquet_filter.o parquet_table.o parquet_cursor.o LIBS = $(ARROW_LIB) $(PARQUET_CPP_LIB) $(ICU_I18N_LIB) +PROF = +#PROF = -fprofile-generate +#PROF = -fprofile-use + libparquet.so: $(LIBS) $(OBJ) - $(CC) -shared -o $@ $(OBJ) $(LDFLAGS) + $(CC) $(PROF) -shared -o $@ $(OBJ) $(LDFLAGS) parquet_filter.o: $(VTABLE)/parquet_filter.cc $(VTABLE)/parquet_filter.h - $(CC) -c -o $@ $< $(CFLAGS) + $(CC) $(PROF) -c -o $@ $< $(CFLAGS) parquet_cursor.o: $(VTABLE)/parquet_cursor.cc $(VTABLE)/parquet_cursor.h $(VTABLE)/parquet_table.h $(VTABLE)/parquet_filter.h - $(CC) -c -o $@ $< $(CFLAGS) + $(CC) $(PROF) -c -o $@ $< $(CFLAGS) parquet_table.o: $(VTABLE)/parquet_table.cc $(VTABLE)/parquet_table.h - $(CC) -c -o $@ $< $(CFLAGS) + $(CC) $(PROF) -c -o $@ $< $(CFLAGS) parquet.o: $(VTABLE)/parquet.cc $(VTABLE)/parquet_cursor.h $(VTABLE)/parquet_table.h $(VTABLE)/parquet_filter.h - $(CC) -c -o $@ $< $(CFLAGS) + $(CC) $(PROF) -c -o $@ $< $(CFLAGS) $(ARROW_LIB): rm -rf $(ARROW)