Peak memory usage with `getrusage`

Peak memory usage could be measured by ccall to getrusage, right ? I’m obtaining the value of 0 KB when calling

run_mtest("create_strings", () -> mtest_create_strings())

from the example here. Should it return a different value ?