FUNCTION::PROC_MEM_S(3stap)

πŸ’– FUNCTION::PROC_MEM_S(3stap) πŸ’–

okay bestie, welcome to the Memory Tapset corner of the SystemTap Tapset Reference β€” yes this is a 3stap page, we're in manual-page-land, come sit with me 🫢


✨ NAME ✨

function::proc_mem_size β€” literally the total program virtual memory size in pages πŸŽ€


🌸 SYNOPSIS 🌸

1) proc_mem_size:long()

2) proc_mem_size:long(pid:long)

two whole flavors, pick your fighter πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pid β€” the pid of the process you wanna examine πŸ‘€ (like, whose memory are we snooping on, bestie)

πŸ’œ DESCRIPTION πŸ’œ

1) Returns the total virtual memory size in pages of the current process β€” that's your process, the one right there in the room with you. But bestie, if there is no current process, or if the number of pages couldn't be retrieved, you get zero. Not an error, not a crash, just a lil 0 πŸ™ˆ

2) Returns the total virtual memory size in pages of the given process, the one you named with pid. Same deal: if that process doesn't exist, or the number of pages couldn't be retrieved, it's zero o'clock πŸ•›

no cap, "zero" here is doing a lot of emotional labor β€” it means "couldn't get it" AND "nothing there" AND "nobody home." that's the vibe. that's the API. periodt πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the page!! πŸ’– written up in the SystemTap Tapset Reference, version Ver, dated September 2026 β€” mwah, love u, go check ur process memory πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from