Add memory profile build target (#1960)

* fix(cmd): Add profiling build imports

It seems like this file has been bitrotted since last used,
and it was missing some imports. This was discovered
by running goimports on the code.

* Add build-memprof Makefile target
This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2022-05-09 10:16:10 -04:00
1 parent 687dd1bda6
commit 8ed560fc3e
2 files changed
+12 -3

No files matched your search

+6
View File
@@ -49,6 +49,12 @@ build: build-ui-ifne
install: export BOUNDARY_INSTALL_BINARY=1
install: build
.PHONY: build-memprof
build-memprof: BUILD_TAGS+=memprofiler
build-memprof:
@echo "==> Building Boundary with memory profiling enabled"
@CGO_ENABLED=$(CGO_ENABLED) BUILD_TAGS='$(BUILD_TAGS)' sh -c "'$(CURDIR)/scripts/build.sh'"
# Format Go files, ignoring files marked as generated through the header defined at
# https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source
.PHONY: fmt