diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-20 17:09:34 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-11-21 19:39:45 +0100 |
commit | fa002c0ba95929bef65df57a33471682666b46ba (patch) | |
tree | f47272951cd6c75be81fdf61c501c14871ef6471 /darwin | |
parent | 3e5cba91ce3c7661e5b6406b1840cdc27d397dc1 (diff) |
Rename virtual memory column from M_SIZE to M_VIRT
Closes: #325
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/DarwinProcess.c | 4 | ||||
-rw-r--r-- | darwin/Platform.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/darwin/DarwinProcess.c b/darwin/DarwinProcess.c index b8362da7..f3c34254 100644 --- a/darwin/DarwinProcess.c +++ b/darwin/DarwinProcess.c @@ -204,7 +204,7 @@ void DarwinProcess_setFromKInfoProc(Process* proc, const struct kinfo_proc* ps, * nlwp * percent_cpu * percent_mem - * m_size + * m_virt * m_resident * minflt * majflt @@ -258,7 +258,7 @@ void DarwinProcess_setFromLibprocPidinfo(DarwinProcess* proc, DarwinProcessList* proc->super.time = (pti.pti_total_system + pti.pti_total_user) / 10000000; proc->super.nlwp = pti.pti_threadnum; - proc->super.m_size = pti.pti_virtual_size / CRT_pageSize; + proc->super.m_virt = pti.pti_virtual_size / CRT_pageSize; proc->super.m_resident = pti.pti_resident_size / CRT_pageSize; proc->super.majflt = pti.pti_faults; proc->super.percent_mem = (double)pti.pti_resident_size * 100.0 diff --git a/darwin/Platform.c b/darwin/Platform.c index bf9645b3..fe3505e9 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -31,7 +31,7 @@ in the source distribution for its full text. #include <IOKit/ps/IOPowerSources.h> #include <IOKit/ps/IOPSKeys.h> -ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; +ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; const SignalItem Platform_signals[] = { { .name = " 0 Cancel", .number = 0 }, @@ -88,7 +88,7 @@ ProcessFieldData Process_fields[] = { [STARTTIME] = { .name = "STARTTIME", .title = "START ", .description = "Time the process was started", .flags = 0, }, [PROCESSOR] = { .name = "PROCESSOR", .title = "CPU ", .description = "Id of the CPU the process last executed on", .flags = 0, }, - [M_SIZE] = { .name = "M_SIZE", .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, }, + [M_VIRT] = { .name = "M_VIRT", .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, }, [M_RESIDENT] = { .name = "M_RESIDENT", .title = " RES ", .description = "Resident set size, size of the text and data sections, plus stack usage", .flags = 0, }, [ST_UID] = { .name = "ST_UID", .title = " UID ", .description = "User ID of the process owner", .flags = 0, }, [PERCENT_CPU] = { .name = "PERCENT_CPU", .title = "CPU% ", .description = "Percentage of the CPU time the process used in the last sampling", .flags = 0, }, |