Memory and CPU Usage Script

Richard Gaskin ambassador at fourthworld.com
Fri Jun 6 20:33:41 EDT 2014


Kay C Lan wrote:

 > I wanted to know what was using my memory and CPU and using top
 > was always going to place itself in the list.  This is understandable
 > as top is active whilst the id, ps, and vm_stat are all static, but I
 > notice that even Activity Monitor with all it's bells and whistles
 > uses significantly less CPU than top.

You can run top just once with:

top -bn1

But even more fun, you can take a trip back to 1997 to read Scott 
Raney's article in Linux Journal about using LiveCode (back then called 
"MetaCard") to build a GUI for top:
<http://porky.linuxjournal.com:8080/LJ/043/2110.html>

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list