[VOL-2689] enable compile time profiling
Change-Id: I18c6ebd076e4e21d2297b20d32692ababf8c3e78
diff --git a/Makefile b/Makefile
index f70af13..a46a2e6 100644
--- a/Makefile
+++ b/Makefile
@@ -63,19 +63,20 @@
@echo "Usage: make [<target>]"
@echo "where available targets are:"
@echo ""
- @echo "clean : Removes any local filesystem artifacts generated by a build"
- @echo "distclean : Removes any local filesystem artifacts generated by a build or test run"
- @echo "build : Build all openolt adapter artifacts"
- @echo "docker-build : Build openolt adapter docker image"
- @echo "docker-push : Push the docker images to an external repository"
- @echo "help : Print this help"
- @echo "lint : Run all lint targets"
- @echo "lint-dockerfile : Perform static analysis on Dockerfiles"
- @echo "lint-mod : Verify the Go dependencies"
- @echo "local-protos : Copies a local verison of the VOLTHA protos into the vendor directory"
- @echo "local-lib-go : Copies a local version of the VOTLHA dependencies into the vendor directory"
- @echo "sca : Runs various SCA through golangci-lint tool"
- @echo "test : Run unit tests, if any"
+ @echo "clean : Removes any local filesystem artifacts generated by a build"
+ @echo "distclean : Removes any local filesystem artifacts generated by a build or test run"
+ @echo "build : Build all openolt adapter artifacts"
+ @echo "docker-build : Build openolt adapter docker image"
+ @echo "docker-build-profile : Build openolt adapter docker image with profiling enabled"
+ @echo "docker-push : Push the docker images to an external repository"
+ @echo "help : Print this help"
+ @echo "lint : Run all lint targets"
+ @echo "lint-dockerfile : Perform static analysis on Dockerfiles"
+ @echo "lint-mod : Verify the Go dependencies"
+ @echo "local-protos : Copies a local verison of the VOLTHA protos into the vendor directory"
+ @echo "local-lib-go : Copies a local version of the VOTLHA dependencies into the vendor directory"
+ @echo "sca : Runs various SCA through golangci-lint tool"
+ @echo "test : Run unit tests, if any"
@echo
## Local Development Helpers
@@ -102,6 +103,9 @@
docker-build: local-protos local-lib-go
docker build $(DOCKER_BUILD_ARGS) -t ${ADAPTER_IMAGENAME} -f docker/Dockerfile.openolt .
+docker-build-profile: local-protos local-lib-go
+ docker build $(DOCKER_BUILD_ARGS) -t ${ADAPTER_IMAGENAME}-profile -f docker/Dockerfile.openolt_profile .
+
docker-push:
docker push ${ADAPTER_IMAGENAME}