Add "make profile" hotkey

This commit is contained in:
Ivan Kravets
2019-07-04 19:02:13 +03:00
parent caf5159002
commit 73dacd9418

View File

@@ -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
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