How do I do heap profiling?
I already know how to do stack profiling. I have an assembly language routine that returns the current stack pointer, which I then use in my C code. Heap stuff is more complicated and that does not use the stack pointer, so how do I check that?