Simple memory profiling for R
