Simply Watch Memory  of any process or group of process and do something with them.