FUNCTION::PROC\_MEM\_S(3stap) Memory Tapset FUNCTION::PROC\_MEM\_S(3stap)

# [NAME](#NAME)

function::proc\_mem\_string - Human readable string of process memory usage

# [SYNOPSIS](#SYNOPSIS)

```
1) proc_mem_string:string()
```

```
2) proc_mem_string:string(pid:long)
```

# [ARGUMENTS](#ARGUMENTS)

*pid*

The pid of process to examine

# [DESCRIPTION](#DESCRIPTION)

1\) Returns a human readable string showing the size, rss, shr, txt and data of the memory used by the current process. For example“size: 301m, rss: 11m, shr: 8m, txt: 52k, data: 2248k”.

2\) Returns a human readable string showing the size, rss, shr, txt and data of the memory used by the given process. For example“size: 301m, rss: 11m, shr: 8m, txt: 52k, data: 2248k”.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::proc\_mem*(3stap)](/man/enterprise-packages/systemtap/tapset::proc_mem.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::proc_mem_string(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
