Not really, because you don't control when the GC
frees up memory, and it could happen between your measurements. Also, as I understand it the GC
won't count structs that sit on the stack memory and not the heap.
It's probably more accurate to sum it up yourself knowing how much memory each item you use occupies.