I'd like to retrieve the memory usage of a program. I tried using HeapSize() but it seems to only give the size of a memory block inside the heap. What function am I looking for, if it exists? If possible, can you also retrieve the CPU usage?