Adding a command-line option to set the memory-sampling interval