forked from platformio/platformio-core
Add "make profile" hotkey
This commit is contained in:
8
Makefile
8
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
|
||||
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
|
||||
|
Reference in New Issue
Block a user