Looks for the X resource usage of the application with process ID pid on
display gdisplay. If no resource usage can be found, then all fields of
usage are set to 0.
In order to find the resource usage of an application that does not have an
X window visible to libwnck (panel applets do not have any toplevel windows,
for example), wnck_pid_read_resource_usage() walks through the whole tree of
X windows. Since this walk is expensive in CPU, a cache is created. This
cache is updated in the background. This means there is a non-null
probability that no resource usage will be found for an application, even if
it is an X client. If this happens, calling wnck_pid_read_resource_usage()
again after a few seconds should work.
To properly work, this function requires the XRes extension on the X server.
Looks for the X resource usage of the application with process ID
pidon displaygdisplay. If no resource usage can be found, then all fields ofusageare set to 0.In order to find the resource usage of an application that does not have an X window visible to libwnck (panel applets do not have any toplevel windows, for example),
wnck_pid_read_resource_usage()walks through the whole tree of X windows. Since this walk is expensive in CPU, a cache is created. This cache is updated in the background. This means there is a non-null probability that no resource usage will be found for an application, even if it is an X client. If this happens, callingwnck_pid_read_resource_usage()again after a few seconds should work.To properly work, this function requires the XRes extension on the X server.