library: improve/normalize an interface, <MEMINFO> api
This represents the refinement of this interface after the <stat> API was redesigned. We now follow a pattern of 'get' for single item retrieval & 'select' for when multiple items are desired, with just 1 function call. And again following the <stat> lead this interface now provides for delta values encompassing most items. The reason I went cuckoo nuts with those deltas is because they are essentially free. At the cost of a little RAM and just one memcpy there's no other price to be paid. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -16,13 +16,10 @@ global:
|
||||
procps_linux_version;
|
||||
procps_loadavg;
|
||||
procps_meminfo_new;
|
||||
procps_meminfo_read;
|
||||
procps_meminfo_ref;
|
||||
procps_meminfo_unref;
|
||||
procps_meminfo_get;
|
||||
procps_meminfo_getstack;
|
||||
procps_meminfo_stack_fill;
|
||||
procps_meminfo_stack_alloc;
|
||||
procps_meminfo_select;
|
||||
procps_ns_get_name;
|
||||
procps_ns_get_id;
|
||||
procps_ns_read_pid;
|
||||
|
Reference in New Issue
Block a user