record memory traces

combine.rb not quite done