summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-29 11:06:09 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-29 11:06:35 +0100
commite2abf615b7cec26168adc80e9d2ce290f3539db4 (patch)
treefa3a35fe8d0ff77dd19c99a6f14dcc7839486dff /Userland/Utilities
parent0682a351481dbe5c5a6a36f1b9f6d68e17c2eacc (diff)
downloadserenity-e2abf615b7cec26168adc80e9d2ce290f3539db4.zip
pmap: Trim "VMObject" suffix from VMObject types to save space
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/pmap.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp
index 6f948b64b0..1b4b8477d9 100644
--- a/Userland/Utilities/pmap.cpp
+++ b/Userland/Utilities/pmap.cpp
@@ -63,7 +63,7 @@ int main(int argc, char** argv)
printf("%s:\n", pid);
if (extended) {
- printf("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name\n");
+ printf("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name\n");
} else {
printf("Address Size Access Name\n");
}
@@ -94,12 +94,14 @@ int main(int argc, char** argv)
auto resident = map.get("amount_resident").to_string();
auto dirty = map.get("amount_dirty").to_string();
auto vmobject = map.get("vmobject").to_string();
+ if (vmobject.ends_with("VMObject"))
+ vmobject = vmobject.substring(0, vmobject.length() - 8);
auto purgeable = map.get("purgeable").to_string();
auto cow_pages = map.get("cow_pages").to_string();
printf("%10s ", resident.characters());
printf("%10s ", dirty.characters());
printf("%-6s ", access.characters());
- printf("%-22s ", vmobject.characters());
+ printf("%-14s ", vmobject.characters());
printf("%-10s ", purgeable.characters());
printf("%10s ", cow_pages.characters());
} else {