Add Cuda memory to trace