forked from platformio/platformio-core
Add "make profile" hotkey
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
pylint --rcfile=./.pylintrc ./platformio
|
pylint --rcfile=./.pylintrc ./platformio
|
||||||
|
|
||||||
@@ -24,3 +23,8 @@ clean: clean-docs
|
|||||||
rm -rf build
|
rm -rf build
|
||||||
rm -rf htmlcov
|
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