Memory and CPU Usage Script

Kay C Lan lan.kc.macmail at gmail.com
Fri Jun 6 21:08:59 EDT 2014


Thanks Richard, I strangely feel chuffed about the fact that I'm
reinventing a wheel already built by the legendary Man himself. I
might have to look into a few more of the top options: -bn1 didn't
work on my 10.9.3 but clearly there must be an OS X equivalent.

On Sat, Jun 7, 2014 at 8:33 AM, Richard Gaskin
<ambassador at fourthworld.com> wrote:
> 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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list