Scripts to trace memory accesses from a program