New API to retrieve process io stats, with Linux implementation
This commit is contained in:
@@ -431,3 +431,18 @@ glibtop_get_proc_affinity(glibtop_proc_affinity *buf, pid_t pid)
|
||||
{
|
||||
return glibtop_get_proc_affinity_l(glibtop_global_server, buf, pid);
|
||||
}
|
||||
|
||||
/**
|
||||
* glibtop_get_proc_diskio: Get the disk io stats for the given pid
|
||||
* @buf: Buffer where the result will be given
|
||||
* @pid: Process id to get the io stats for
|
||||
*
|
||||
* Get the io stats for a process
|
||||
*
|
||||
* Returns: A list of processor ID of 'buf.number' elements.
|
||||
*/
|
||||
void
|
||||
glibtop_get_proc_diskio(glibtop_proc_diskio *buf, pid_t pid)
|
||||
{
|
||||
return glibtop_get_proc_diskio_l(glibtop_global_server, buf, pid);
|
||||
}
|
||||
|
Reference in New Issue
Block a user