From d04b578b0fa358d9c711eaed8f2413dcbf5d9c1b Mon Sep 17 00:00:00 2001 From: Slava Markeyev Date: Thu, 16 May 2024 14:28:00 -0700 Subject: [PATCH] build with pgo --- Makefile | 3 ++- profiles/merged.pprof | Bin 0 -> 15688 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 profiles/merged.pprof diff --git a/Makefile b/Makefile index a8928cbe..f3d2a573 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ GIT_TAG_VERSION := $(shell git tag -l --points-at HEAD | grep -v latest) ifeq ($(CI),true) GO_TEST_EXTRAS ?= "-coverprofile=c.out" GO_LDFLAGS += -X main.GitRevision=$(GIT_REVISION) -X main.Version=$(GIT_TAG_VERSION) + GO_PGOFLAGS ?= "-pgo=profiles/merged.pprof" endif vendor: go.sum go.mod @@ -52,7 +53,7 @@ clean: build: generate @echo "Creating GO binary" mkdir -p target - CGO_ENABLED=0 GOOS=linux go build -ldflags "$(GO_LDFLAGS)" -o target/pg-bifrost github.com/Nextdoor/pg-bifrost.git/main + CGO_ENABLED=0 GOOS=linux go build -ldflags "$(GO_LDFLAGS)" ${GO_PGOFLAGS} -o target/pg-bifrost github.com/Nextdoor/pg-bifrost.git/main build_mac: generate @echo "Creating GO binary" diff --git a/profiles/merged.pprof b/profiles/merged.pprof new file mode 100644 index 0000000000000000000000000000000000000000..a7271d0245057d20141e10e49e0bcc944ee0477e GIT binary patch literal 15688 zcmb_C33yc1)&GSoj{wO@5IF3Qu=oNpLtfYf6bSnc37ewE$;``S$ZX6K2yOubii#lO zf`X#phA3JP5EVB>QPkpw+Lmf-``fD3TC}yl)&HFP-kX__1PE5YFLU2J%RT!!_dX^) z`u?L^p53tW^Nv|*ihvgMw6or&Xy@gF(gN$=Bw)JI0*DMg@+7cd2BWP<{D5$8dv=3Sm zI1LXxAi-(yNec;1gDlJ<@Fya#EeK!yIpYYbYX;Hnt^OLwjtmcF+n*_BPNFJF2K< z6Z1Cs-EqmhE$lJP))qQp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