Why Nostr? What is Njump?
2025-03-30 13:56:13
in reply to

Chris [list of emoji] on Nostr: nprofile1q…hch8f So, there are three things you could possible be asking for here: ...



So, there are three things you could possible be asking for here:

1. Total memory used by the process.

2. Fraction of 1 currently in RAM (vs swap).

3. Total bytes currently allocated with new/malloc/etc.

1 and 2 are provided by `top` as the "USED" and "RES" columns (more or less).

3 will require cooperation from your allocation library. glibc has some support for that if you're using the system malloc, but a lot of frameworks don't or use it as a back end.

(ctd)
Author Public Key
npub1y9sm8lpfk08w6rhlqdx65qpmpdhggsj9wysxx6h04v5yqe29q29s9xd2j5