aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2024-03-31 10:41:19 -0700
committerSeongJae Park <sj38.park@gmail.com>2024-03-31 10:41:19 -0700
commit4c9b5cdea58ed4e36fa7bb991a97557582c1109d (patch)
treeae607192506abacf49ca37f3513249bcee6e026f
parent5efcc1f4ade950d8b35590c9c8d2e8d1c3a77ccc (diff)
downloaddamo-4c9b5cdea58ed4e36fa7bb991a97557582c1109d.tar.gz
damo_record: Add the comment for MemFootprint fields' meaning
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r--damo_record.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/damo_record.py b/damo_record.py
index d13fc23c..e2831af5 100644
--- a/damo_record.py
+++ b/damo_record.py
@@ -134,9 +134,26 @@ def poll_target_pids(kdamonds, add_childs):
cleanup_exit(1)
return True
+# Meaning of the fileds of MemFootprint are as below.
+#
+# ======== =============================== ==============================
+# Field Content
+# ======== =============================== ==============================
+# size total program size (pages) (same as VmSize in status)
+# resident size of memory portions (pages) (same as VmRSS in status)
+# shared number of pages that are shared (i.e. backed by a file, same
+# as RssFile+RssShmem in status)
+# trs number of pages that are 'code' (not including libs; broken,
+# includes data segment)
+# lrs number of pages of library (always 0 on 2.6)
+# drs number of pages of data/stack (including libs; broken,
+# includes library text)
+# dt number of dirty pages (always 0 on 2.6)
+# ======== =============================== ==============================
+#
+# The above table is tolen from Documentation/filesystems/proc.rst file of
+# Linux
class MemFootprint:
- # Refer to 'statm' file part of linux/Documentation/filesystems/proc.rst
- # for meaning of the fields
size = None
resident = None
shared = None