Skip to content

Commit 3136123

Browse files
committed
Refactorized trace-malloc and the rules targetting memory-*
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
1 parent cad2914 commit 3136123

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,21 @@ profiling: profiling-gprof profiling-pyinstrument profiling-pyspy ## Profiling o
143143

144144
trace-malloc: ## Trace the malloc() calls
145145
@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
147147

148148
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
150150

151151
memory-profiling: ## Profile memory usage
152152
@echo "It's a very long test (~4 hours)..."
153153
rm -f mprofile_*.dat
154154
@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
157157
rm -f mprofile_*.dat
158158
@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
161161
rm -f mprofile_*.dat
162162

163163
# Trivy installation: https://aquasecurity.github.io/trivy/latest/getting-started/installation/

0 commit comments

Comments
 (0)