File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -143,21 +143,21 @@ profiling: profiling-gprof profiling-pyinstrument profiling-pyspy ## Profiling o
143
143
144
144
trace-malloc : # # Trace the malloc() calls
145
145
@echo " Malloc test is running, please wait ~30 secondes..."
146
- ./venv/bin/python -m glances -C ./conf/glances.conf --trace-malloc --stop-after 15 --quiet
146
+ $( PYTHON ) -m glances -C $( CONF ) --trace-malloc --stop-after 15 --quiet
147
147
148
148
memory-leak : # # Profile memory leaks
149
- ./venv/bin/python -m glances -C ./conf/glances.conf --memory-leak
149
+ $( PYTHON ) -m glances -C $( CONF ) --memory-leak
150
150
151
151
memory-profiling : # # Profile memory usage
152
152
@echo " It's a very long test (~4 hours)..."
153
153
rm -f mprofile_* .dat
154
154
@echo " 1/2 - Start memory profiling with the history option enable"
155
- ./venv-dev/bin/ mprof run -T 1 -C run.py -C ./conf/glances.conf --stop-after 2400 --quiet
156
- ./venv-dev/bin /mprof plot --output ./docs/_static/glances-memory-profiling-with-history.png
155
+ $( VENV_DEV ) / mprof run -T 1 -C run.py -C $( CONF ) --stop-after 2400 --quiet
156
+ $( VENV_DEV ) /mprof plot --output ./docs/_static/glances-memory-profiling-with-history.png
157
157
rm -f mprofile_* .dat
158
158
@echo " 2/2 - Start memory profiling with the history option disable"
159
- ./venv-dev/bin/ mprof run -T 1 -C run.py -C ./conf/glances.conf --disable-history --stop-after 2400 --quiet
160
- ./venv-dev/bin /mprof plot --output ./docs/_static/glances-memory-profiling-without-history.png
159
+ $( VENV_DEV ) / mprof run -T 1 -C run.py -C $( CONF ) --disable-history --stop-after 2400 --quiet
160
+ $( VENV_DEV ) /mprof plot --output ./docs/_static/glances-memory-profiling-without-history.png
161
161
rm -f mprofile_* .dat
162
162
163
163
# Trivy installation: https://aquasecurity.github.io/trivy/latest/getting-started/installation/
You can’t perform that action at this time.
0 commit comments