Development/Tutorials/SystemActivity/Scripting: Difference between revisions

    From KDE TechBase
    (Finish off introduction.)
    (Needs actual tutorial content)
     
    (2 intermediate revisions by 2 users not shown)
    Line 1: Line 1:
    {{Improve}}
    == System Activity ==
    == System Activity ==


    === 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.
    Line 15: Line 17:
    [[File:Systemactivity_contextmenu.png]]
    [[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.
    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 (ECMAScript), 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 [email protected].
    If you write an interesting script, and want to have it included with KDE, please email it to me at [email protected].

    Latest revision as of 08:52, 31 May 2019

    Warning
    This section needs improvements: Please help us to

    cleanup confusing sections and fix sections which contain a todo


    System Activity

    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.

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

    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 (ECMAScript), 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 [email protected].