Re: Fwd: [Xpert]New extension for keeping track of client resources



jg pa dec com (Jim Gettys) writes:
> For those of you willing to build out of XFree86's CVS, a new tool
> that will get you resource usage out of the X server.  We should have
> done this in 1988.  Sigh...

This is great!

If any X hackers are taking feature requests, it'd be great to get the 
IDs of each resource. If we could get the Window/Pixmap IDs, 
we could for example:

 a) find out how large the pixmaps are and display total 
    pixels used by each client

 b) map from Window->PID using the _NET_WM_PID hint, and display X
    resource usage for processes in gnome-system-monitor right next to
    CPU/mem usage

Or maybe this info is already available, I didn't see it in the
example though.

Another nice thing to be able to request for the system monitor would
be a simple count of total server-side memory that should be charged
to the client (would not need to be super-precise, just include the
"large pieces" of each resource, such as the pixel data).

The great thing for X here is that if we get the info in the system
monitor, people will stop blaming X for bloat that belongs to
clients. ;-)

Havoc

_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]