measure memory, add lines between measure groups