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