File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,20 +124,20 @@ semgrep: ## Run semgrep to find bugs and enforce code standards
124
124
profiling-gprof : # # Callgraph profiling (need "apt install graphviz")
125
125
@echo " Start Glances for 30 iterations (more or less 1 mins, please do not exit !)"
126
126
sleep 3
127
- ./venv/bin/python -m cProfile -o ./glances.cprof ./run.py --stop-after 30
128
- ./venv-dev/bin /gprof2dot -f pstats ./glances.cprof | dot -Tsvg -o ./docs/_static/glances-cgraph.svg
127
+ $( PYTHON ) -m cProfile -o ./glances.cprof ./run.py --stop-after 30
128
+ $( VENV_DEV ) /gprof2dot -f pstats ./glances.cprof | dot -Tsvg -o ./docs/_static/glances-cgraph.svg
129
129
rm -f ./glances.cprof
130
130
131
131
profiling-pyinstrument : # # PyInstrument profiling
132
132
@echo " Start Glances for 30 iterations (more or less 1 mins, please do not exit !)"
133
133
sleep 3
134
- ./venv/bin/pip install pyinstrument
135
- ./venv/bin/python -m pyinstrument -r html -o ./docs/_static/glances-pyinstrument.html -m glances --stop-after 30
134
+ $( PIP ) install pyinstrument
135
+ $( PYTHON ) -m pyinstrument -r html -o ./docs/_static/glances-pyinstrument.html -m glances --stop-after 30
136
136
137
137
profiling-pyspy : # # Flame profiling (currently not compatible with Python 3.12)
138
138
@echo " Start Glances for 30 iterations (more or less 1 mins, please do not exit !)"
139
139
sleep 3
140
- ./venv-dev/bin/ py-spy record -o ./docs/_static/glances-flame.svg -d 60 -s -- ./venv/bin/python ./run.py --stop-after 30
140
+ $( VENV_DEV ) / py-spy record -o ./docs/_static/glances-flame.svg -d 60 -s -- $( PYTHON ) ./run.py --stop-after 30
141
141
142
142
profiling : profiling-gprof profiling-pyinstrument profiling-pyspy # # Profiling of the Glances software
143
143
You can’t perform that action at this time.
0 commit comments