Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > a1f37a6195725f87ee26240c1e1a9af2 > files > 87

gkrellm-plugins-2.1.25-2mdk.i586.rpm

gkrelltop is a monitor to see the three most cpu intensive processes. It
shows the pid of the most active one on mouse over as a tooltip. This way
if mozilla is going crazy on you, you can figure it out in a split and
kill it if necessary. Most useful for laptops which dont want the cpu to
be used at all times. But useful also to know, at times, which are the
processes that are claiming the cpu usage you see on the cpu monitor (of
gkrellm or otherwise). Definitely in initial stages, even though it does
what i want it to do, for the moment.

It works for gkrellm 1.* and 2.* but if you have problems, please let me know.
It works for linux and freebsd. For the makefile parameters, read below.

To compile for gkrellm 2.* simply do:

	make 

or make all, or make gkrelltop2 and it will produce gkrelltop2.so in the 
directory. To try it out do:

	gkrellm -p gkrelltop2.so


To compile for gkrellm 1.* do:
	
	make gkrelltop

and to try it out do

	gkrellm -p gkrelltop.so


If make fails then compile the modules manually (look at the Makefile to 
find out what is needed). 

To copy this in your plugin directory, for gkrellm 2 do:
	make install2 

and for gkrellm 1 do:
	make install 

Display the top three processes occupying the cpu, in some future version it
would be neat to display the process id by clicking on the panel or have a 
tooltip that will show all three processes, with their percentages). Right 
now i only show the first process as a tooltip, which disapears fast if 
the process receeded in activity.

Moving the mouse on top of the widget changes the list display and instead
of displaying the process name, it displays the PID and processor usage.


Notes from the Makefile:

   For linux need the -DLINUX as a CFLAGS parameter

   to compile for FREEBSD the CFLAGS parameter 
   needs to be -DFREEBSD 
 
   I have attempted to detect the os by the OSFLAG variable 
   NOTE that it will work only for LINUX or FREEBSD
 
   if you think it should work for your os than substituting
   your $(OSFLAG) will not quite do the trick because the wmtop code 
   (the three_top.c file) only recognises those two (LINUX and FREEBSD)
   parameters. Let me know if the more recent versions of wmtop 
   support more OS.


Written by Adi Zaimi zaimi-at-pegasus.rutgers.edu
- based on the demos for gkrellm 1.* and 2.* from gkrell website
- based on Wmtop -- WindowMaker process view dock app
- Under dhe GNU license