Skip to content

Commit

Permalink
add memory profiling using memray [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ravnoor committed Jan 23, 2023
1 parent 4aba9f8 commit 2b36b5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# ignore deepMask
# git clone <> in Dockerfile instead
app/deepMask
app/deepMask
memray*.bin
memray*.html
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ data
__pycache__
notebooks/
.ipynb_checkpoints/
*.csv
*.csv
memray*.bin
memray*.html
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ clean-build:
test-pipeline:
./app/inference.py $(CASE_ID) t1.nii.gz flair.nii.gz $(TMPDIR) cuda0 $(BRAIN_MASKING) $(PREPROCESS)

memray-profiling:
python3 -m memray run ./app/inference.py $(CASE_ID) t1_brain.nii.gz t2_brain.nii.gz $(TMPDIR) cuda0 0 0

memray-profiling-cpu:
python3 -m memray run ./app/inference.py $(CASE_ID) t1_brain.nii.gz t2_brain.nii.gz $(TMPDIR) cpu 0 0

test-preprocess:
./app/preprocess.sh $(CASE_ID) t1.nii.gz flair.nii.gz $(TMPDIR) $(BRAIN_MASKING) $(PREPROCESS)

Expand Down

0 comments on commit 2b36b5b

Please sign in to comment.