you will see the virtual size and the resident size. As for swap space, the
kernel only needs to send the anonymous memory pages of an application to swap
space, the text (code) can be retrieved from the disk file for the
application.

Which is probably slower than just using swap for all (instead of seeking
all around the disk).