From 73dacd9418868f1317837522c8b3e64de6755a4b Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 4 Jul 2019 19:02:13 +0300 Subject: [PATCH] Add "make profile" hotkey --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bc8ba602..c82b7c54 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ - lint: pylint --rcfile=./.pylintrc ./platformio @@ -23,4 +22,9 @@ clean: clean-docs rm -rf .cache rm -rf build rm -rf htmlcov - rm -f .coverage \ No newline at end of file + rm -f .coverage + +profile: + # Usage $ > make PIOARGS="boards" profile + python -m cProfile -o .tox/.tmp/cprofile.prof $(shell which platformio) ${PIOARGS} + snakeviz .tox/.tmp/cprofile.prof