Difference between revisions of "Development/Tutorials/SystemActivity/Scripting"

Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 3: Line 3:
 
=== Intro ===
 
=== Intro ===
  
System Activity is akin to the Microsoft Window's Task Manager, Apple's Mac OS X's Activity Monitor and Gnome's System Monitor.
+
System Activity is akin to the Microsoft Window's Task Manager, Apple's Mac OS X's Activity Monitor and Gnome's System Monitor.  It pops up when you press ctrl+esc.
  
 
It shows a list of currently running processes, along with their CPU usage, Memory usage, and various other pieces of information.
 
It shows a list of currently running processes, along with their CPU usage, Memory usage, and various other pieces of information.
  
 
The kernel, and other tools, can provide a lot of information about a process, such as the libraries that it pulls in, how the memory is laid out, and so on.  Using scripting, we can present this information in an easy to read format.
 
The kernel, and other tools, can provide a lot of information about a process, such as the libraries that it pulls in, how the memory is laid out, and so on.  Using scripting, we can present this information in an easy to read format.
 +
 +
[[File:SystemActivity.png]]
 +
 +
If the user right clicks on a process, they get a context menu similar to:
 +
 +
[[File:Systemactivity_contextmenu.png]]
 +
 +
The menu options "What's this process..." and "Detailed memory information" are two example scripts that we will be writing in this tutorial.  By writing scripts, in JavaScript (EMCAScript), we can provide detailed information about a process that a user might be interested in.
 +
 +
If you write an interesting script, and want to have it included with KDE, please email it to me at john.tapsell@kde.org.

Latest revision as of 10:41, 21 December 2009

[edit] System Activity

[edit] Intro

System Activity is akin to the Microsoft Window's Task Manager, Apple's Mac OS X's Activity Monitor and Gnome's System Monitor. It pops up when you press ctrl+esc.

It shows a list of currently running processes, along with their CPU usage, Memory usage, and various other pieces of information.

The kernel, and other tools, can provide a lot of information about a process, such as the libraries that it pulls in, how the memory is laid out, and so on. Using scripting, we can present this information in an easy to read format.

SystemActivity.png

If the user right clicks on a process, they get a context menu similar to:

Systemactivity contextmenu.png

The menu options "What's this process..." and "Detailed memory information" are two example scripts that we will be writing in this tutorial. By writing scripts, in JavaScript (EMCAScript), we can provide detailed information about a process that a user might be interested in.

If you write an interesting script, and want to have it included with KDE, please email it to me at john.tapsell@kde.org.


This page was last modified on 21 December 2009, at 10:41. This page has been accessed 4,859 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal