How to track total memory usage of Julia process over time

@sloede, I may ask, how can I use your code (meminfo_julia() and meminfo_procfs(pid=getpid()) functions) to measure maximum memory usage by a piece of Julia code?

I am wondering how to reference a piece of Julia code or a .jl file to these functions so that these functions return memory measurements specific to that piece of code.